#include "../include/types.h"
#include "../include/config.h"
#include "../include/pokemon.h"
#include "../include/constants/ability.h"
#include "../include/constants/species.h"

const u16 UNUSED HiddenAbilityTable[] =
{
    [SPECIES_NONE                        ] = ABILITY_NONE,
    [SPECIES_BULBASAUR                   ] = ABILITY_CHLOROPHYLL,
    [SPECIES_IVYSAUR                     ] = ABILITY_CHLOROPHYLL,
    [SPECIES_VENUSAUR                    ] = ABILITY_CHLOROPHYLL,
    [SPECIES_CHARMANDER                  ] = ABILITY_SOLAR_POWER,
    [SPECIES_CHARMELEON                  ] = ABILITY_SOLAR_POWER,
    [SPECIES_CHARIZARD                   ] = ABILITY_SOLAR_POWER,
    [SPECIES_SQUIRTLE                    ] = ABILITY_RAIN_DISH,
    [SPECIES_WARTORTLE                   ] = ABILITY_RAIN_DISH,
    [SPECIES_BLASTOISE                   ] = ABILITY_RAIN_DISH,
    [SPECIES_CATERPIE                    ] = ABILITY_RUN_AWAY,
    [SPECIES_METAPOD                     ] = ABILITY_SHED_SKIN,
    [SPECIES_BUTTERFREE                  ] = ABILITY_TINTED_LENS,
    [SPECIES_WEEDLE                      ] = ABILITY_RUN_AWAY,
    [SPECIES_KAKUNA                      ] = ABILITY_SHED_SKIN,
    [SPECIES_BEEDRILL                    ] = ABILITY_SNIPER,
    [SPECIES_PIDGEY                      ] = ABILITY_BIG_PECKS,
    [SPECIES_PIDGEOTTO                   ] = ABILITY_BIG_PECKS,
    [SPECIES_PIDGEOT                     ] = ABILITY_BIG_PECKS,
    [SPECIES_RATTATA                     ] = ABILITY_HUSTLE,
    [SPECIES_RATICATE                    ] = ABILITY_HUSTLE,
    [SPECIES_SPEAROW                     ] = ABILITY_SNIPER,
    [SPECIES_FEAROW                      ] = ABILITY_SNIPER,
    [SPECIES_EKANS                       ] = ABILITY_UNNERVE,
    [SPECIES_ARBOK                       ] = ABILITY_UNNERVE,
    [SPECIES_PIKACHU                     ] = ABILITY_LIGHTNING_ROD,
    [SPECIES_RAICHU                      ] = ABILITY_LIGHTNING_ROD,
    [SPECIES_SANDSHREW                   ] = ABILITY_SAND_RUSH,
    [SPECIES_SANDSLASH                   ] = ABILITY_SAND_RUSH,
    [SPECIES_NIDORAN_F                   ] = ABILITY_HUSTLE,
    [SPECIES_NIDORINA                    ] = ABILITY_HUSTLE,
    [SPECIES_NIDOQUEEN                   ] = ABILITY_SHEER_FORCE,
    [SPECIES_NIDORAN_M                   ] = ABILITY_HUSTLE,
    [SPECIES_NIDORINO                    ] = ABILITY_HUSTLE,
    [SPECIES_NIDOKING                    ] = ABILITY_SHEER_FORCE,
    [SPECIES_CLEFAIRY                    ] = ABILITY_FRIEND_GUARD,
    [SPECIES_CLEFABLE                    ] = ABILITY_UNAWARE,
    [SPECIES_VULPIX                      ] = ABILITY_DROUGHT,
    [SPECIES_NINETALES                   ] = ABILITY_DROUGHT,
    [SPECIES_JIGGLYPUFF                  ] = ABILITY_FRIEND_GUARD,
    [SPECIES_WIGGLYTUFF                  ] = ABILITY_FRISK,
    [SPECIES_ZUBAT                       ] = ABILITY_INFILTRATOR,
    [SPECIES_GOLBAT                      ] = ABILITY_INFILTRATOR,
    [SPECIES_ODDISH                      ] = ABILITY_RUN_AWAY,
    [SPECIES_GLOOM                       ] = ABILITY_STENCH,
    [SPECIES_VILEPLUME                   ] = ABILITY_EFFECT_SPORE,
    [SPECIES_PARAS                       ] = ABILITY_DAMP,
    [SPECIES_PARASECT                    ] = ABILITY_DAMP,
    [SPECIES_VENONAT                     ] = ABILITY_RUN_AWAY,
    [SPECIES_VENOMOTH                    ] = ABILITY_WONDER_SKIN,
    [SPECIES_DIGLETT                     ] = ABILITY_SAND_FORCE,
    [SPECIES_DUGTRIO                     ] = ABILITY_SAND_FORCE,
    [SPECIES_MEOWTH                      ] = ABILITY_UNNERVE,
    [SPECIES_PERSIAN                     ] = ABILITY_UNNERVE,
    [SPECIES_PSYDUCK                     ] = ABILITY_SWIFT_SWIM,
    [SPECIES_GOLDUCK                     ] = ABILITY_SWIFT_SWIM,
    [SPECIES_MANKEY                      ] = ABILITY_DEFIANT,
    [SPECIES_PRIMEAPE                    ] = ABILITY_DEFIANT,
    [SPECIES_GROWLITHE                   ] = ABILITY_JUSTIFIED,
    [SPECIES_ARCANINE                    ] = ABILITY_JUSTIFIED,
    [SPECIES_POLIWAG                     ] = ABILITY_SWIFT_SWIM,
    [SPECIES_POLIWHIRL                   ] = ABILITY_SWIFT_SWIM,
    [SPECIES_POLIWRATH                   ] = ABILITY_SWIFT_SWIM,
    [SPECIES_ABRA                        ] = ABILITY_MAGIC_GUARD,
    [SPECIES_KADABRA                     ] = ABILITY_MAGIC_GUARD,
    [SPECIES_ALAKAZAM                    ] = ABILITY_MAGIC_GUARD,
    [SPECIES_MACHOP                      ] = ABILITY_STEADFAST,
    [SPECIES_MACHOKE                     ] = ABILITY_STEADFAST,
    [SPECIES_MACHAMP                     ] = ABILITY_STEADFAST,
    [SPECIES_BELLSPROUT                  ] = ABILITY_GLUTTONY,
    [SPECIES_WEEPINBELL                  ] = ABILITY_GLUTTONY,
    [SPECIES_VICTREEBEL                  ] = ABILITY_GLUTTONY,
    [SPECIES_TENTACOOL                   ] = ABILITY_RAIN_DISH,
    [SPECIES_TENTACRUEL                  ] = ABILITY_RAIN_DISH,
    [SPECIES_GEODUDE                     ] = ABILITY_SAND_VEIL,
    [SPECIES_GRAVELER                    ] = ABILITY_SAND_VEIL,
    [SPECIES_GOLEM                       ] = ABILITY_SAND_VEIL,
    [SPECIES_PONYTA                      ] = ABILITY_FLAME_BODY,
    [SPECIES_RAPIDASH                    ] = ABILITY_FLAME_BODY,
    [SPECIES_SLOWPOKE                    ] = ABILITY_REGENERATOR,
    [SPECIES_SLOWBRO                     ] = ABILITY_REGENERATOR,
    [SPECIES_MAGNEMITE                   ] = ABILITY_ANALYTIC,
    [SPECIES_MAGNETON                    ] = ABILITY_ANALYTIC,
    [SPECIES_FARFETCHD                   ] = ABILITY_DEFIANT,
    [SPECIES_DODUO                       ] = ABILITY_TANGLED_FEET,
    [SPECIES_DODRIO                      ] = ABILITY_TANGLED_FEET,
    [SPECIES_SEEL                        ] = ABILITY_ICE_BODY,
    [SPECIES_DEWGONG                     ] = ABILITY_ICE_BODY,
    [SPECIES_GRIMER                      ] = ABILITY_POISON_TOUCH,
    [SPECIES_MUK                         ] = ABILITY_POISON_TOUCH,
    [SPECIES_SHELLDER                    ] = ABILITY_OVERCOAT,
    [SPECIES_CLOYSTER                    ] = ABILITY_OVERCOAT,
    [SPECIES_GASTLY                      ] = ABILITY_NONE,
    [SPECIES_HAUNTER                     ] = ABILITY_NONE,
    [SPECIES_GENGAR                      ] = ABILITY_NONE,
    [SPECIES_ONIX                        ] = ABILITY_WEAK_ARMOR,
    [SPECIES_DROWZEE                     ] = ABILITY_INNER_FOCUS,
    [SPECIES_HYPNO                       ] = ABILITY_INNER_FOCUS,
    [SPECIES_KRABBY                      ] = ABILITY_SHEER_FORCE,
    [SPECIES_KINGLER                     ] = ABILITY_SHEER_FORCE,
    [SPECIES_VOLTORB                     ] = ABILITY_AFTERMATH,
    [SPECIES_ELECTRODE                   ] = ABILITY_AFTERMATH,
    [SPECIES_EXEGGCUTE                   ] = ABILITY_HARVEST,
    [SPECIES_EXEGGUTOR                   ] = ABILITY_HARVEST,
    [SPECIES_CUBONE                      ] = ABILITY_BATTLE_ARMOR,
    [SPECIES_MAROWAK                     ] = ABILITY_BATTLE_ARMOR,
    [SPECIES_HITMONLEE                   ] = ABILITY_UNBURDEN,
    [SPECIES_HITMONCHAN                  ] = ABILITY_INNER_FOCUS,
    [SPECIES_LICKITUNG                   ] = ABILITY_CLOUD_NINE,
    [SPECIES_KOFFING                     ] = ABILITY_STENCH,
    [SPECIES_WEEZING                     ] = ABILITY_STENCH,
    [SPECIES_RHYHORN                     ] = ABILITY_RECKLESS,
    [SPECIES_RHYDON                      ] = ABILITY_RECKLESS,
    [SPECIES_CHANSEY                     ] = ABILITY_HEALER,
    [SPECIES_TANGELA                     ] = ABILITY_REGENERATOR,
    [SPECIES_KANGASKHAN                  ] = ABILITY_INNER_FOCUS,
    [SPECIES_HORSEA                      ] = ABILITY_DAMP,
    [SPECIES_SEADRA                      ] = ABILITY_DAMP,
    [SPECIES_GOLDEEN                     ] = ABILITY_LIGHTNING_ROD,
    [SPECIES_SEAKING                     ] = ABILITY_LIGHTNING_ROD,
    [SPECIES_STARYU                      ] = ABILITY_ANALYTIC,
    [SPECIES_STARMIE                     ] = ABILITY_ANALYTIC,
    [SPECIES_MR_MIME                     ] = ABILITY_TECHNICIAN,
    [SPECIES_SCYTHER                     ] = ABILITY_STEADFAST,
    [SPECIES_JYNX                        ] = ABILITY_DRY_SKIN,
    [SPECIES_ELECTABUZZ                  ] = ABILITY_VITAL_SPIRIT,
    [SPECIES_MAGMAR                      ] = ABILITY_VITAL_SPIRIT,
    [SPECIES_PINSIR                      ] = ABILITY_MOXIE,
    [SPECIES_TAUROS                      ] = ABILITY_SHEER_FORCE,
    [SPECIES_MAGIKARP                    ] = ABILITY_RATTLED,
    [SPECIES_GYARADOS                    ] = ABILITY_MOXIE,
    [SPECIES_LAPRAS                      ] = ABILITY_HYDRATION,
    [SPECIES_DITTO                       ] = ABILITY_IMPOSTER,
    [SPECIES_EEVEE                       ] = ABILITY_ANTICIPATION,
    [SPECIES_EEVEE_PARTNER               ] = ABILITY_ANTICIPATION,
    [SPECIES_VAPOREON                    ] = ABILITY_HYDRATION,
    [SPECIES_JOLTEON                     ] = ABILITY_QUICK_FEET,
    [SPECIES_FLAREON                     ] = ABILITY_GUTS,
    [SPECIES_PORYGON                     ] = ABILITY_ANALYTIC,
    [SPECIES_OMANYTE                     ] = ABILITY_WEAK_ARMOR,
    [SPECIES_OMASTAR                     ] = ABILITY_WEAK_ARMOR,
    [SPECIES_KABUTO                      ] = ABILITY_WEAK_ARMOR,
    [SPECIES_KABUTOPS                    ] = ABILITY_WEAK_ARMOR,
    [SPECIES_AERODACTYL                  ] = ABILITY_UNNERVE,
    [SPECIES_SNORLAX                     ] = ABILITY_GLUTTONY,
    [SPECIES_ARTICUNO                    ] = ABILITY_SNOW_CLOAK,
    [SPECIES_ZAPDOS                      ] = ABILITY_STATIC,
    [SPECIES_MOLTRES                     ] = ABILITY_FLAME_BODY,
    [SPECIES_DRATINI                     ] = ABILITY_MARVEL_SCALE,
    [SPECIES_DRAGONAIR                   ] = ABILITY_MARVEL_SCALE,
    [SPECIES_DRAGONITE                   ] = ABILITY_MULTISCALE,
    [SPECIES_MEWTWO                      ] = ABILITY_UNNERVE,
    [SPECIES_MEW                         ] = ABILITY_NONE,
    [SPECIES_CHIKORITA                   ] = ABILITY_LEAF_GUARD,
    [SPECIES_BAYLEEF                     ] = ABILITY_LEAF_GUARD,
    [SPECIES_MEGANIUM                    ] = ABILITY_LEAF_GUARD,
    [SPECIES_CYNDAQUIL                   ] = ABILITY_FLASH_FIRE,
    [SPECIES_QUILAVA                     ] = ABILITY_FLASH_FIRE,
    [SPECIES_TYPHLOSION                  ] = ABILITY_FLASH_FIRE,
    [SPECIES_TOTODILE                    ] = ABILITY_SHEER_FORCE,
    [SPECIES_CROCONAW                    ] = ABILITY_SHEER_FORCE,
    [SPECIES_FERALIGATR                  ] = ABILITY_SHEER_FORCE,
    [SPECIES_SENTRET                     ] = ABILITY_FRISK,
    [SPECIES_FURRET                      ] = ABILITY_FRISK,
    [SPECIES_HOOTHOOT                    ] = ABILITY_TINTED_LENS,
    [SPECIES_NOCTOWL                     ] = ABILITY_TINTED_LENS,
    [SPECIES_LEDYBA                      ] = ABILITY_RATTLED,
    [SPECIES_LEDIAN                      ] = ABILITY_IRON_FIST,
    [SPECIES_SPINARAK                    ] = ABILITY_SNIPER,
    [SPECIES_ARIADOS                     ] = ABILITY_SNIPER,
    [SPECIES_CROBAT                      ] = ABILITY_INFILTRATOR,
    [SPECIES_CHINCHOU                    ] = ABILITY_WATER_ABSORB,
    [SPECIES_LANTURN                     ] = ABILITY_WATER_ABSORB,
    [SPECIES_PICHU                       ] = ABILITY_LIGHTNING_ROD,
    [SPECIES_CLEFFA                      ] = ABILITY_FRIEND_GUARD,
    [SPECIES_IGGLYBUFF                   ] = ABILITY_FRIEND_GUARD,
    [SPECIES_TOGEPI                      ] = ABILITY_SUPER_LUCK,
    [SPECIES_TOGETIC                     ] = ABILITY_SUPER_LUCK,
    [SPECIES_NATU                        ] = ABILITY_MAGIC_BOUNCE,
    [SPECIES_XATU                        ] = ABILITY_MAGIC_BOUNCE,
    [SPECIES_MAREEP                      ] = ABILITY_PLUS,
    [SPECIES_FLAAFFY                     ] = ABILITY_PLUS,
    [SPECIES_AMPHAROS                    ] = ABILITY_PLUS,
    [SPECIES_BELLOSSOM                   ] = ABILITY_HEALER,
    [SPECIES_MARILL                      ] = ABILITY_SAP_SIPPER,
    [SPECIES_AZUMARILL                   ] = ABILITY_SAP_SIPPER,
    [SPECIES_SUDOWOODO                   ] = ABILITY_RATTLED,
    [SPECIES_POLITOED                    ] = ABILITY_DRIZZLE,
    [SPECIES_HOPPIP                      ] = ABILITY_INFILTRATOR,
    [SPECIES_SKIPLOOM                    ] = ABILITY_INFILTRATOR,
    [SPECIES_JUMPLUFF                    ] = ABILITY_INFILTRATOR,
    [SPECIES_AIPOM                       ] = ABILITY_SKILL_LINK,
    [SPECIES_SUNKERN                     ] = ABILITY_EARLY_BIRD,
    [SPECIES_SUNFLORA                    ] = ABILITY_EARLY_BIRD,
    [SPECIES_YANMA                       ] = ABILITY_FRISK,
    [SPECIES_WOOPER                      ] = ABILITY_UNAWARE,
    [SPECIES_QUAGSIRE                    ] = ABILITY_UNAWARE,
    [SPECIES_ESPEON                      ] = ABILITY_MAGIC_BOUNCE,
    [SPECIES_UMBREON                     ] = ABILITY_INNER_FOCUS,
    [SPECIES_MURKROW                     ] = ABILITY_PRANKSTER,
    [SPECIES_SLOWKING                    ] = ABILITY_REGENERATOR,
    [SPECIES_MISDREAVUS                  ] = ABILITY_NONE,
    [SPECIES_UNOWN                       ] = ABILITY_NONE,
    [SPECIES_WOBBUFFET                   ] = ABILITY_TELEPATHY,
    [SPECIES_GIRAFARIG                   ] = ABILITY_SAP_SIPPER,
    [SPECIES_PINECO                      ] = ABILITY_OVERCOAT,
    [SPECIES_FORRETRESS                  ] = ABILITY_OVERCOAT,
    [SPECIES_DUNSPARCE                   ] = ABILITY_RATTLED,
    [SPECIES_GLIGAR                      ] = ABILITY_IMMUNITY,
    [SPECIES_STEELIX                     ] = ABILITY_SHEER_FORCE,
    [SPECIES_SNUBBULL                    ] = ABILITY_RATTLED,
    [SPECIES_GRANBULL                    ] = ABILITY_RATTLED,
    [SPECIES_QWILFISH                    ] = ABILITY_INTIMIDATE,
    [SPECIES_SCIZOR                      ] = ABILITY_LIGHT_METAL,
    [SPECIES_SHUCKLE                     ] = ABILITY_CONTRARY,
    [SPECIES_HERACROSS                   ] = ABILITY_MOXIE,
    [SPECIES_SNEASEL                     ] = ABILITY_PICKPOCKET,
    [SPECIES_TEDDIURSA                   ] = ABILITY_HONEY_GATHER,
    [SPECIES_URSARING                    ] = ABILITY_UNNERVE,
    [SPECIES_SLUGMA                      ] = ABILITY_WEAK_ARMOR,
    [SPECIES_MAGCARGO                    ] = ABILITY_WEAK_ARMOR,
    [SPECIES_SWINUB                      ] = ABILITY_THICK_FAT,
    [SPECIES_PILOSWINE                   ] = ABILITY_THICK_FAT,
    [SPECIES_CORSOLA                     ] = ABILITY_REGENERATOR,
    [SPECIES_REMORAID                    ] = ABILITY_MOODY,
    [SPECIES_OCTILLERY                   ] = ABILITY_MOODY,
    [SPECIES_DELIBIRD                    ] = ABILITY_INSOMNIA,
    [SPECIES_MANTINE                     ] = ABILITY_WATER_VEIL,
    [SPECIES_SKARMORY                    ] = ABILITY_WEAK_ARMOR,
    [SPECIES_HOUNDOUR                    ] = ABILITY_UNNERVE,
    [SPECIES_HOUNDOOM                    ] = ABILITY_UNNERVE,
    [SPECIES_KINGDRA                     ] = ABILITY_DAMP,
    [SPECIES_PHANPY                      ] = ABILITY_SAND_VEIL,
    [SPECIES_DONPHAN                     ] = ABILITY_SAND_VEIL,
    [SPECIES_PORYGON2                    ] = ABILITY_ANALYTIC,
    [SPECIES_STANTLER                    ] = ABILITY_SAP_SIPPER,
    [SPECIES_SMEARGLE                    ] = ABILITY_MOODY,
    [SPECIES_TYROGUE                     ] = ABILITY_VITAL_SPIRIT,
    [SPECIES_HITMONTOP                   ] = ABILITY_STEADFAST,
    [SPECIES_SMOOCHUM                    ] = ABILITY_HYDRATION,
    [SPECIES_ELEKID                      ] = ABILITY_VITAL_SPIRIT,
    [SPECIES_MAGBY                       ] = ABILITY_VITAL_SPIRIT,
    [SPECIES_MILTANK                     ] = ABILITY_SAP_SIPPER,
    [SPECIES_BLISSEY                     ] = ABILITY_HEALER,
    [SPECIES_RAIKOU                      ] = ABILITY_INNER_FOCUS,
    [SPECIES_ENTEI                       ] = ABILITY_INNER_FOCUS,
    [SPECIES_SUICUNE                     ] = ABILITY_INNER_FOCUS,
    [SPECIES_LARVITAR                    ] = ABILITY_SAND_VEIL,
    [SPECIES_PUPITAR                     ] = ABILITY_SHED_SKIN,
    [SPECIES_TYRANITAR                   ] = ABILITY_UNNERVE,
    [SPECIES_LUGIA                       ] = ABILITY_MULTISCALE,
    [SPECIES_HO_OH                       ] = ABILITY_REGENERATOR,
    [SPECIES_CELEBI                      ] = ABILITY_NONE,
    [SPECIES_TREECKO                     ] = ABILITY_UNBURDEN,
    [SPECIES_GROVYLE                     ] = ABILITY_UNBURDEN,
    [SPECIES_SCEPTILE                    ] = ABILITY_UNBURDEN,
    [SPECIES_TORCHIC                     ] = ABILITY_SPEED_BOOST,
    [SPECIES_COMBUSKEN                   ] = ABILITY_SPEED_BOOST,
    [SPECIES_BLAZIKEN                    ] = ABILITY_SPEED_BOOST,
    [SPECIES_MUDKIP                      ] = ABILITY_DAMP,
    [SPECIES_MARSHTOMP                   ] = ABILITY_DAMP,
    [SPECIES_SWAMPERT                    ] = ABILITY_DAMP,
    [SPECIES_POOCHYENA                   ] = ABILITY_RATTLED,
    [SPECIES_MIGHTYENA                   ] = ABILITY_MOXIE,
    [SPECIES_ZIGZAGOON                   ] = ABILITY_QUICK_FEET,
    [SPECIES_LINOONE                     ] = ABILITY_QUICK_FEET,
    [SPECIES_WURMPLE                     ] = ABILITY_RUN_AWAY,
    [SPECIES_SILCOON                     ] = ABILITY_SHED_SKIN,
    [SPECIES_BEAUTIFLY                   ] = ABILITY_RIVALRY,
    [SPECIES_CASCOON                     ] = ABILITY_SHED_SKIN,
    [SPECIES_DUSTOX                      ] = ABILITY_COMPOUND_EYES,
    [SPECIES_LOTAD                       ] = ABILITY_OWN_TEMPO,
    [SPECIES_LOMBRE                      ] = ABILITY_OWN_TEMPO,
    [SPECIES_LUDICOLO                    ] = ABILITY_OWN_TEMPO,
    [SPECIES_SEEDOT                      ] = ABILITY_PICKPOCKET,
    [SPECIES_NUZLEAF                     ] = ABILITY_PICKPOCKET,
    [SPECIES_SHIFTRY                     ] = ABILITY_PICKPOCKET,
    [SPECIES_TAILLOW                     ] = ABILITY_SCRAPPY,
    [SPECIES_SWELLOW                     ] = ABILITY_SCRAPPY,
    [SPECIES_WINGULL                     ] = ABILITY_RAIN_DISH,
    [SPECIES_PELIPPER                    ] = ABILITY_RAIN_DISH,
    [SPECIES_RALTS                       ] = ABILITY_TELEPATHY,
    [SPECIES_KIRLIA                      ] = ABILITY_TELEPATHY,
    [SPECIES_GARDEVOIR                   ] = ABILITY_TELEPATHY,
    [SPECIES_SURSKIT                     ] = ABILITY_RAIN_DISH,
    [SPECIES_MASQUERAIN                  ] = ABILITY_UNNERVE,
    [SPECIES_SHROOMISH                   ] = ABILITY_QUICK_FEET,
    [SPECIES_BRELOOM                     ] = ABILITY_TECHNICIAN,
    [SPECIES_SLAKOTH                     ] = ABILITY_NONE,
    [SPECIES_VIGOROTH                    ] = ABILITY_NONE,
    [SPECIES_SLAKING                     ] = ABILITY_NONE,
    [SPECIES_NINCADA                     ] = ABILITY_RUN_AWAY,
    [SPECIES_NINJASK                     ] = ABILITY_INFILTRATOR,
    [SPECIES_SHEDINJA                    ] = ABILITY_NONE,
    [SPECIES_WHISMUR                     ] = ABILITY_RATTLED,
    [SPECIES_LOUDRED                     ] = ABILITY_SCRAPPY,
    [SPECIES_EXPLOUD                     ] = ABILITY_SCRAPPY,
    [SPECIES_MAKUHITA                    ] = ABILITY_SHEER_FORCE,
    [SPECIES_HARIYAMA                    ] = ABILITY_SHEER_FORCE,
    [SPECIES_AZURILL                     ] = ABILITY_SAP_SIPPER,
    [SPECIES_NOSEPASS                    ] = ABILITY_SAND_FORCE,
    [SPECIES_SKITTY                      ] = ABILITY_WONDER_SKIN,
    [SPECIES_DELCATTY                    ] = ABILITY_WONDER_SKIN,
    [SPECIES_SABLEYE                     ] = ABILITY_PRANKSTER,
    [SPECIES_MAWILE                      ] = ABILITY_SHEER_FORCE,
    [SPECIES_ARON                        ] = ABILITY_HEAVY_METAL,
    [SPECIES_LAIRON                      ] = ABILITY_HEAVY_METAL,
    [SPECIES_AGGRON                      ] = ABILITY_HEAVY_METAL,
    [SPECIES_MEDITITE                    ] = ABILITY_TELEPATHY,
    [SPECIES_MEDICHAM                    ] = ABILITY_TELEPATHY,
    [SPECIES_ELECTRIKE                   ] = ABILITY_MINUS,
    [SPECIES_MANECTRIC                   ] = ABILITY_MINUS,
    [SPECIES_PLUSLE                      ] = ABILITY_LIGHTNING_ROD,
    [SPECIES_MINUN                       ] = ABILITY_VOLT_ABSORB,
    [SPECIES_VOLBEAT                     ] = ABILITY_PRANKSTER,
    [SPECIES_ILLUMISE                    ] = ABILITY_PRANKSTER,
    [SPECIES_ROSELIA                     ] = ABILITY_LEAF_GUARD,
    [SPECIES_GULPIN                      ] = ABILITY_GLUTTONY,
    [SPECIES_SWALOT                      ] = ABILITY_GLUTTONY,
    [SPECIES_CARVANHA                    ] = ABILITY_SPEED_BOOST,
    [SPECIES_SHARPEDO                    ] = ABILITY_SPEED_BOOST,
    [SPECIES_WAILMER                     ] = ABILITY_PRESSURE,
    [SPECIES_WAILORD                     ] = ABILITY_PRESSURE,
    [SPECIES_NUMEL                       ] = ABILITY_OWN_TEMPO,
    [SPECIES_CAMERUPT                    ] = ABILITY_ANGER_POINT,
    [SPECIES_TORKOAL                     ] = ABILITY_SHELL_ARMOR,
    [SPECIES_SPOINK                      ] = ABILITY_GLUTTONY,
    [SPECIES_GRUMPIG                     ] = ABILITY_GLUTTONY,
    [SPECIES_SPINDA                      ] = ABILITY_CONTRARY,
    [SPECIES_TRAPINCH                    ] = ABILITY_SHEER_FORCE,
    [SPECIES_VIBRAVA                     ] = ABILITY_NONE,
    [SPECIES_FLYGON                      ] = ABILITY_NONE,
    [SPECIES_CACNEA                      ] = ABILITY_WATER_ABSORB,
    [SPECIES_CACTURNE                    ] = ABILITY_WATER_ABSORB,
    [SPECIES_SWABLU                      ] = ABILITY_CLOUD_NINE,
    [SPECIES_ALTARIA                     ] = ABILITY_CLOUD_NINE,
    [SPECIES_ZANGOOSE                    ] = ABILITY_TOXIC_BOOST,
    [SPECIES_SEVIPER                     ] = ABILITY_INFILTRATOR,
    [SPECIES_LUNATONE                    ] = ABILITY_NONE,
    [SPECIES_SOLROCK                     ] = ABILITY_NONE,
    [SPECIES_BARBOACH                    ] = ABILITY_HYDRATION,
    [SPECIES_WHISCASH                    ] = ABILITY_HYDRATION,
    [SPECIES_CORPHISH                    ] = ABILITY_ADAPTABILITY,
    [SPECIES_CRAWDAUNT                   ] = ABILITY_ADAPTABILITY,
    [SPECIES_BALTOY                      ] = ABILITY_NONE,
    [SPECIES_CLAYDOL                     ] = ABILITY_NONE,
    [SPECIES_LILEEP                      ] = ABILITY_STORM_DRAIN,
    [SPECIES_CRADILY                     ] = ABILITY_STORM_DRAIN,
    [SPECIES_ANORITH                     ] = ABILITY_SWIFT_SWIM,
    [SPECIES_ARMALDO                     ] = ABILITY_SWIFT_SWIM,
    [SPECIES_FEEBAS                      ] = ABILITY_ADAPTABILITY,
    [SPECIES_MILOTIC                     ] = ABILITY_CUTE_CHARM,
    [SPECIES_CASTFORM                    ] = ABILITY_NONE,
    [SPECIES_KECLEON                     ] = ABILITY_PROTEAN,
    [SPECIES_SHUPPET                     ] = ABILITY_CURSED_BODY,
    [SPECIES_BANETTE                     ] = ABILITY_CURSED_BODY,
    [SPECIES_DUSKULL                     ] = ABILITY_FRISK,
    [SPECIES_DUSCLOPS                    ] = ABILITY_FRISK,
    [SPECIES_TROPIUS                     ] = ABILITY_HARVEST,
    [SPECIES_CHIMECHO                    ] = ABILITY_NONE,
    [SPECIES_ABSOL                       ] = ABILITY_JUSTIFIED,
    [SPECIES_WYNAUT                      ] = ABILITY_TELEPATHY,
    [SPECIES_SNORUNT                     ] = ABILITY_MOODY,
    [SPECIES_GLALIE                      ] = ABILITY_MOODY,
    [SPECIES_SPHEAL                      ] = ABILITY_OBLIVIOUS,
    [SPECIES_SEALEO                      ] = ABILITY_OBLIVIOUS,
    [SPECIES_WALREIN                     ] = ABILITY_OBLIVIOUS,
    [SPECIES_CLAMPERL                    ] = ABILITY_RATTLED,
    [SPECIES_HUNTAIL                     ] = ABILITY_WATER_VEIL,
    [SPECIES_GOREBYSS                    ] = ABILITY_HYDRATION,
    [SPECIES_RELICANTH                   ] = ABILITY_STURDY,
    [SPECIES_LUVDISC                     ] = ABILITY_HYDRATION,
    [SPECIES_BAGON                       ] = ABILITY_SHEER_FORCE,
    [SPECIES_SHELGON                     ] = ABILITY_OVERCOAT,
    [SPECIES_SALAMENCE                   ] = ABILITY_MOXIE,
    [SPECIES_BELDUM                      ] = ABILITY_LIGHT_METAL,
    [SPECIES_METANG                      ] = ABILITY_LIGHT_METAL,
    [SPECIES_METAGROSS                   ] = ABILITY_LIGHT_METAL,
    [SPECIES_REGIROCK                    ] = ABILITY_STURDY,
    [SPECIES_REGICE                      ] = ABILITY_ICE_BODY,
    [SPECIES_REGISTEEL                   ] = ABILITY_LIGHT_METAL,
    [SPECIES_LATIAS                      ] = ABILITY_NONE,
    [SPECIES_LATIOS                      ] = ABILITY_NONE,
    [SPECIES_KYOGRE                      ] = ABILITY_NONE,
    [SPECIES_GROUDON                     ] = ABILITY_NONE,
    [SPECIES_RAYQUAZA                    ] = ABILITY_NONE,
    [SPECIES_JIRACHI                     ] = ABILITY_NONE,
    [SPECIES_DEOXYS                      ] = ABILITY_NONE,
    [SPECIES_TURTWIG                     ] = ABILITY_SHELL_ARMOR,
    [SPECIES_GROTLE                      ] = ABILITY_SHELL_ARMOR,
    [SPECIES_TORTERRA                    ] = ABILITY_SHELL_ARMOR,
    [SPECIES_CHIMCHAR                    ] = ABILITY_IRON_FIST,
    [SPECIES_MONFERNO                    ] = ABILITY_IRON_FIST,
    [SPECIES_INFERNAPE                   ] = ABILITY_IRON_FIST,
    [SPECIES_PIPLUP                      ] = ABILITY_COMPETITIVE,
    [SPECIES_PRINPLUP                    ] = ABILITY_COMPETITIVE,
    [SPECIES_EMPOLEON                    ] = ABILITY_COMPETITIVE,
    [SPECIES_STARLY                      ] = ABILITY_RECKLESS,
    [SPECIES_STARAVIA                    ] = ABILITY_RECKLESS,
    [SPECIES_STARAPTOR                   ] = ABILITY_RECKLESS,
    [SPECIES_BIDOOF                      ] = ABILITY_MOODY,
    [SPECIES_BIBAREL                     ] = ABILITY_MOODY,
    [SPECIES_KRICKETOT                   ] = ABILITY_RUN_AWAY,
    [SPECIES_KRICKETUNE                  ] = ABILITY_TECHNICIAN,
    [SPECIES_SHINX                       ] = ABILITY_GUTS,
    [SPECIES_LUXIO                       ] = ABILITY_GUTS,
    [SPECIES_LUXRAY                      ] = ABILITY_GUTS,
    [SPECIES_BUDEW                       ] = ABILITY_LEAF_GUARD,
    [SPECIES_ROSERADE                    ] = ABILITY_TECHNICIAN,
    [SPECIES_CRANIDOS                    ] = ABILITY_SHEER_FORCE,
    [SPECIES_RAMPARDOS                   ] = ABILITY_SHEER_FORCE,
    [SPECIES_SHIELDON                    ] = ABILITY_SOUNDPROOF,
    [SPECIES_BASTIODON                   ] = ABILITY_SOUNDPROOF,
    [SPECIES_BURMY                       ] = ABILITY_OVERCOAT,
    [SPECIES_WORMADAM                    ] = ABILITY_OVERCOAT,
    [SPECIES_MOTHIM                      ] = ABILITY_TINTED_LENS,
    [SPECIES_COMBEE                      ] = ABILITY_HUSTLE,
    [SPECIES_VESPIQUEN                   ] = ABILITY_UNNERVE,
    [SPECIES_PACHIRISU                   ] = ABILITY_VOLT_ABSORB,
    [SPECIES_BUIZEL                      ] = ABILITY_WATER_VEIL,
    [SPECIES_FLOATZEL                    ] = ABILITY_WATER_VEIL,
    [SPECIES_CHERUBI                     ] = ABILITY_NONE,
    [SPECIES_CHERRIM                     ] = ABILITY_NONE,
    [SPECIES_SHELLOS                     ] = ABILITY_SAND_FORCE,
    [SPECIES_GASTRODON                   ] = ABILITY_SAND_FORCE,
    [SPECIES_AMBIPOM                     ] = ABILITY_SKILL_LINK,
    [SPECIES_DRIFLOON                    ] = ABILITY_FLARE_BOOST,
    [SPECIES_DRIFBLIM                    ] = ABILITY_FLARE_BOOST,
    [SPECIES_BUNEARY                     ] = ABILITY_LIMBER,
    [SPECIES_LOPUNNY                     ] = ABILITY_LIMBER,
    [SPECIES_MISMAGIUS                   ] = ABILITY_NONE,
    [SPECIES_HONCHKROW                   ] = ABILITY_MOXIE,
    [SPECIES_GLAMEOW                     ] = ABILITY_KEEN_EYE,
    [SPECIES_PURUGLY                     ] = ABILITY_DEFIANT,
    [SPECIES_CHINGLING                   ] = ABILITY_NONE,
    [SPECIES_STUNKY                      ] = ABILITY_KEEN_EYE,
    [SPECIES_SKUNTANK                    ] = ABILITY_KEEN_EYE,
    [SPECIES_BRONZOR                     ] = ABILITY_HEAVY_METAL,
    [SPECIES_BRONZONG                    ] = ABILITY_HEAVY_METAL,
    [SPECIES_BONSLY                      ] = ABILITY_RATTLED,
    [SPECIES_MIME_JR                     ] = ABILITY_TECHNICIAN,
    [SPECIES_HAPPINY                     ] = ABILITY_FRIEND_GUARD,
    [SPECIES_CHATOT                      ] = ABILITY_BIG_PECKS,
    [SPECIES_SPIRITOMB                   ] = ABILITY_INFILTRATOR,
    [SPECIES_GIBLE                       ] = ABILITY_ROUGH_SKIN,
    [SPECIES_GABITE                      ] = ABILITY_ROUGH_SKIN,
    [SPECIES_GARCHOMP                    ] = ABILITY_ROUGH_SKIN,
    [SPECIES_MUNCHLAX                    ] = ABILITY_GLUTTONY,
    [SPECIES_RIOLU                       ] = ABILITY_PRANKSTER,
    [SPECIES_LUCARIO                     ] = ABILITY_JUSTIFIED,
    [SPECIES_HIPPOPOTAS                  ] = ABILITY_SAND_FORCE,
    [SPECIES_HIPPOWDON                   ] = ABILITY_SAND_FORCE,
    [SPECIES_SKORUPI                     ] = ABILITY_KEEN_EYE,
    [SPECIES_DRAPION                     ] = ABILITY_KEEN_EYE,
    [SPECIES_CROAGUNK                    ] = ABILITY_POISON_TOUCH,
    [SPECIES_TOXICROAK                   ] = ABILITY_POISON_TOUCH,
    [SPECIES_CARNIVINE                   ] = ABILITY_NONE,
    [SPECIES_FINNEON                     ] = ABILITY_WATER_VEIL,
    [SPECIES_LUMINEON                    ] = ABILITY_WATER_VEIL,
    [SPECIES_MANTYKE                     ] = ABILITY_WATER_VEIL,
    [SPECIES_SNOVER                      ] = ABILITY_SOUNDPROOF,
    [SPECIES_ABOMASNOW                   ] = ABILITY_SOUNDPROOF,
    [SPECIES_WEAVILE                     ] = ABILITY_PICKPOCKET,
    [SPECIES_MAGNEZONE                   ] = ABILITY_ANALYTIC,
    [SPECIES_LICKILICKY                  ] = ABILITY_CLOUD_NINE,
    [SPECIES_RHYPERIOR                   ] = ABILITY_RECKLESS,
    [SPECIES_TANGROWTH                   ] = ABILITY_REGENERATOR,
    [SPECIES_ELECTIVIRE                  ] = ABILITY_VITAL_SPIRIT,
    [SPECIES_MAGMORTAR                   ] = ABILITY_VITAL_SPIRIT,
    [SPECIES_TOGEKISS                    ] = ABILITY_SUPER_LUCK,
    [SPECIES_YANMEGA                     ] = ABILITY_FRISK,
    [SPECIES_LEAFEON                     ] = ABILITY_CHLOROPHYLL,
    [SPECIES_GLACEON                     ] = ABILITY_ICE_BODY,
    [SPECIES_GLISCOR                     ] = ABILITY_POISON_HEAL,
    [SPECIES_MAMOSWINE                   ] = ABILITY_THICK_FAT,
    [SPECIES_PORYGON_Z                   ] = ABILITY_ANALYTIC,
    [SPECIES_GALLADE                     ] = ABILITY_JUSTIFIED,
    [SPECIES_PROBOPASS                   ] = ABILITY_SAND_FORCE,
    [SPECIES_DUSKNOIR                    ] = ABILITY_FRISK,
    [SPECIES_FROSLASS                    ] = ABILITY_CURSED_BODY,
    [SPECIES_ROTOM                       ] = ABILITY_NONE,
    [SPECIES_UXIE                        ] = ABILITY_NONE,
    [SPECIES_MESPRIT                     ] = ABILITY_NONE,
    [SPECIES_AZELF                       ] = ABILITY_NONE,
    [SPECIES_DIALGA                      ] = ABILITY_TELEPATHY,
    [SPECIES_PALKIA                      ] = ABILITY_TELEPATHY,
    [SPECIES_HEATRAN                     ] = ABILITY_FLAME_BODY,
    [SPECIES_REGIGIGAS                   ] = ABILITY_NONE,
    [SPECIES_GIRATINA                    ] = ABILITY_TELEPATHY,
    [SPECIES_CRESSELIA                   ] = ABILITY_NONE,
    [SPECIES_PHIONE                      ] = ABILITY_NONE,
    [SPECIES_MANAPHY                     ] = ABILITY_NONE,
    [SPECIES_DARKRAI                     ] = ABILITY_NONE,
    [SPECIES_SHAYMIN                     ] = ABILITY_NONE,
    [SPECIES_ARCEUS                      ] = ABILITY_NONE,
    [SPECIES_VICTINI                     ] = ABILITY_NONE,
    [SPECIES_SNIVY                       ] = ABILITY_CONTRARY,
    [SPECIES_SERVINE                     ] = ABILITY_CONTRARY,
    [SPECIES_SERPERIOR                   ] = ABILITY_CONTRARY,
    [SPECIES_TEPIG                       ] = ABILITY_THICK_FAT,
    [SPECIES_PIGNITE                     ] = ABILITY_THICK_FAT,
    [SPECIES_EMBOAR                      ] = ABILITY_RECKLESS,
    [SPECIES_OSHAWOTT                    ] = ABILITY_SHELL_ARMOR,
    [SPECIES_DEWOTT                      ] = ABILITY_SHELL_ARMOR,
    [SPECIES_SAMUROTT                    ] = ABILITY_SHELL_ARMOR,
    [SPECIES_PATRAT                      ] = ABILITY_ANALYTIC,
    [SPECIES_WATCHOG                     ] = ABILITY_ANALYTIC,
    [SPECIES_LILLIPUP                    ] = ABILITY_RUN_AWAY,
    [SPECIES_HERDIER                     ] = ABILITY_SCRAPPY,
    [SPECIES_STOUTLAND                   ] = ABILITY_SCRAPPY,
    [SPECIES_PURRLOIN                    ] = ABILITY_PRANKSTER,
    [SPECIES_LIEPARD                     ] = ABILITY_PRANKSTER,
    [SPECIES_PANSAGE                     ] = ABILITY_OVERGROW,
    [SPECIES_SIMISAGE                    ] = ABILITY_OVERGROW,
    [SPECIES_PANSEAR                     ] = ABILITY_BLAZE,
    [SPECIES_SIMISEAR                    ] = ABILITY_BLAZE,
    [SPECIES_PANPOUR                     ] = ABILITY_TORRENT,
    [SPECIES_SIMIPOUR                    ] = ABILITY_TORRENT,
    [SPECIES_MUNNA                       ] = ABILITY_TELEPATHY,
    [SPECIES_MUSHARNA                    ] = ABILITY_TELEPATHY,
    [SPECIES_PIDOVE                      ] = ABILITY_RIVALRY,
    [SPECIES_TRANQUILL                   ] = ABILITY_RIVALRY,
    [SPECIES_UNFEZANT                    ] = ABILITY_RIVALRY,
    [SPECIES_BLITZLE                     ] = ABILITY_SAP_SIPPER,
    [SPECIES_ZEBSTRIKA                   ] = ABILITY_SAP_SIPPER,
    [SPECIES_ROGGENROLA                  ] = ABILITY_SAND_FORCE,
    [SPECIES_BOLDORE                     ] = ABILITY_SAND_FORCE,
    [SPECIES_GIGALITH                    ] = ABILITY_SAND_FORCE,
    [SPECIES_WOOBAT                      ] = ABILITY_SIMPLE,
    [SPECIES_SWOOBAT                     ] = ABILITY_SIMPLE,
    [SPECIES_DRILBUR                     ] = ABILITY_MOLD_BREAKER,
    [SPECIES_EXCADRILL                   ] = ABILITY_MOLD_BREAKER,
    [SPECIES_AUDINO                      ] = ABILITY_KLUTZ,
    [SPECIES_TIMBURR                     ] = ABILITY_IRON_FIST,
    [SPECIES_GURDURR                     ] = ABILITY_IRON_FIST,
    [SPECIES_CONKELDURR                  ] = ABILITY_IRON_FIST,
    [SPECIES_TYMPOLE                     ] = ABILITY_WATER_ABSORB,
    [SPECIES_PALPITOAD                   ] = ABILITY_WATER_ABSORB,
    [SPECIES_SEISMITOAD                  ] = ABILITY_WATER_ABSORB,
    [SPECIES_THROH                       ] = ABILITY_MOLD_BREAKER,
    [SPECIES_SAWK                        ] = ABILITY_MOLD_BREAKER,
    [SPECIES_SEWADDLE                    ] = ABILITY_OVERCOAT,
    [SPECIES_SWADLOON                    ] = ABILITY_OVERCOAT,
    [SPECIES_LEAVANNY                    ] = ABILITY_OVERCOAT,
    [SPECIES_VENIPEDE                    ] = ABILITY_SPEED_BOOST,
    [SPECIES_WHIRLIPEDE                  ] = ABILITY_SPEED_BOOST,
    [SPECIES_SCOLIPEDE                   ] = ABILITY_SPEED_BOOST,
    [SPECIES_COTTONEE                    ] = ABILITY_CHLOROPHYLL,
    [SPECIES_WHIMSICOTT                  ] = ABILITY_CHLOROPHYLL,
    [SPECIES_PETILIL                     ] = ABILITY_LEAF_GUARD,
    [SPECIES_LILLIGANT                   ] = ABILITY_LEAF_GUARD,
    [SPECIES_BASCULIN                    ] = ABILITY_MOLD_BREAKER,
    [SPECIES_SANDILE                     ] = ABILITY_ANGER_POINT,
    [SPECIES_KROKOROK                    ] = ABILITY_ANGER_POINT,
    [SPECIES_KROOKODILE                  ] = ABILITY_ANGER_POINT,
    [SPECIES_DARUMAKA                    ] = ABILITY_INNER_FOCUS,
    [SPECIES_DARMANITAN                  ] = ABILITY_ZEN_MODE,
    [SPECIES_MARACTUS                    ] = ABILITY_STORM_DRAIN,
    [SPECIES_DWEBBLE                     ] = ABILITY_WEAK_ARMOR,
    [SPECIES_CRUSTLE                     ] = ABILITY_WEAK_ARMOR,
    [SPECIES_SCRAGGY                     ] = ABILITY_INTIMIDATE,
    [SPECIES_SCRAFTY                     ] = ABILITY_INTIMIDATE,
    [SPECIES_SIGILYPH                    ] = ABILITY_TINTED_LENS,
    [SPECIES_YAMASK                      ] = ABILITY_NONE,
    [SPECIES_COFAGRIGUS                  ] = ABILITY_NONE,
    [SPECIES_TIRTOUGA                    ] = ABILITY_SWIFT_SWIM,
    [SPECIES_CARRACOSTA                  ] = ABILITY_SWIFT_SWIM,
    [SPECIES_ARCHEN                      ] = ABILITY_NONE,
    [SPECIES_ARCHEOPS                    ] = ABILITY_NONE,
    [SPECIES_TRUBBISH                    ] = ABILITY_AFTERMATH,
    [SPECIES_GARBODOR                    ] = ABILITY_AFTERMATH,
    [SPECIES_ZORUA                       ] = ABILITY_NONE,
    [SPECIES_ZOROARK                     ] = ABILITY_NONE,
    [SPECIES_MINCCINO                    ] = ABILITY_SKILL_LINK,
    [SPECIES_CINCCINO                    ] = ABILITY_SKILL_LINK,
    [SPECIES_GOTHITA                     ] = ABILITY_SHADOW_TAG,
    [SPECIES_GOTHORITA                   ] = ABILITY_SHADOW_TAG,
    [SPECIES_GOTHITELLE                  ] = ABILITY_SHADOW_TAG,
    [SPECIES_SOLOSIS                     ] = ABILITY_REGENERATOR,
    [SPECIES_DUOSION                     ] = ABILITY_REGENERATOR,
    [SPECIES_REUNICLUS                   ] = ABILITY_REGENERATOR,
    [SPECIES_DUCKLETT                    ] = ABILITY_HYDRATION,
    [SPECIES_SWANNA                      ] = ABILITY_HYDRATION,
    [SPECIES_VANILLITE                   ] = ABILITY_WEAK_ARMOR,
    [SPECIES_VANILLISH                   ] = ABILITY_WEAK_ARMOR,
    [SPECIES_VANILLUXE                   ] = ABILITY_WEAK_ARMOR,
    [SPECIES_DEERLING                    ] = ABILITY_SERENE_GRACE,
    [SPECIES_SAWSBUCK                    ] = ABILITY_SERENE_GRACE,
    [SPECIES_EMOLGA                      ] = ABILITY_MOTOR_DRIVE,
    [SPECIES_KARRABLAST                  ] = ABILITY_NO_GUARD,
    [SPECIES_ESCAVALIER                  ] = ABILITY_OVERCOAT,
    [SPECIES_FOONGUS                     ] = ABILITY_REGENERATOR,
    [SPECIES_AMOONGUSS                   ] = ABILITY_REGENERATOR,
    [SPECIES_FRILLISH                    ] = ABILITY_DAMP,
    [SPECIES_JELLICENT                   ] = ABILITY_DAMP,
    [SPECIES_ALOMOMOLA                   ] = ABILITY_REGENERATOR,
    [SPECIES_JOLTIK                      ] = ABILITY_SWARM,
    [SPECIES_GALVANTULA                  ] = ABILITY_SWARM,
    [SPECIES_FERROSEED                   ] = ABILITY_NONE,
    [SPECIES_FERROTHORN                  ] = ABILITY_ANTICIPATION,
    [SPECIES_KLINK                       ] = ABILITY_CLEAR_BODY,
    [SPECIES_KLANG                       ] = ABILITY_CLEAR_BODY,
    [SPECIES_KLINKLANG                   ] = ABILITY_CLEAR_BODY,
    [SPECIES_TYNAMO                      ] = ABILITY_NONE,
    [SPECIES_EELEKTRIK                   ] = ABILITY_NONE,
    [SPECIES_EELEKTROSS                  ] = ABILITY_NONE,
    [SPECIES_ELGYEM                      ] = ABILITY_ANALYTIC,
    [SPECIES_BEHEEYEM                    ] = ABILITY_ANALYTIC,
    [SPECIES_LITWICK                     ] = ABILITY_INFILTRATOR,
    [SPECIES_LAMPENT                     ] = ABILITY_INFILTRATOR,
    [SPECIES_CHANDELURE                  ] = ABILITY_INFILTRATOR,
    [SPECIES_AXEW                        ] = ABILITY_UNNERVE,
    [SPECIES_FRAXURE                     ] = ABILITY_UNNERVE,
    [SPECIES_HAXORUS                     ] = ABILITY_UNNERVE,
    [SPECIES_CUBCHOO                     ] = ABILITY_RATTLED,
    [SPECIES_BEARTIC                     ] = ABILITY_SWIFT_SWIM,
    [SPECIES_CRYOGONAL                   ] = ABILITY_NONE,
    [SPECIES_SHELMET                     ] = ABILITY_OVERCOAT,
    [SPECIES_ACCELGOR                    ] = ABILITY_UNBURDEN,
    [SPECIES_STUNFISK                    ] = ABILITY_SAND_VEIL,
    [SPECIES_MIENFOO                     ] = ABILITY_RECKLESS,
    [SPECIES_MIENSHAO                    ] = ABILITY_RECKLESS,
    [SPECIES_DRUDDIGON                   ] = ABILITY_MOLD_BREAKER,
    [SPECIES_GOLETT                      ] = ABILITY_NO_GUARD,
    [SPECIES_GOLURK                      ] = ABILITY_NO_GUARD,
    [SPECIES_PAWNIARD                    ] = ABILITY_PRESSURE,
    [SPECIES_BISHARP                     ] = ABILITY_PRESSURE,
    [SPECIES_BOUFFALANT                  ] = ABILITY_SOUNDPROOF,
    [SPECIES_RUFFLET                     ] = ABILITY_HUSTLE,
    [SPECIES_BRAVIARY                    ] = ABILITY_DEFIANT,
    [SPECIES_VULLABY                     ] = ABILITY_WEAK_ARMOR,
    [SPECIES_MANDIBUZZ                   ] = ABILITY_WEAK_ARMOR,
    [SPECIES_HEATMOR                     ] = ABILITY_WHITE_SMOKE,
    [SPECIES_DURANT                      ] = ABILITY_TRUANT,
    [SPECIES_DEINO                       ] = ABILITY_NONE,
    [SPECIES_ZWEILOUS                    ] = ABILITY_NONE,
    [SPECIES_HYDREIGON                   ] = ABILITY_NONE,
    [SPECIES_LARVESTA                    ] = ABILITY_SWARM,
    [SPECIES_VOLCARONA                   ] = ABILITY_SWARM,
    [SPECIES_COBALION                    ] = ABILITY_NONE,
    [SPECIES_TERRAKION                   ] = ABILITY_NONE,
    [SPECIES_VIRIZION                    ] = ABILITY_NONE,
    [SPECIES_TORNADUS                    ] = ABILITY_DEFIANT,
    [SPECIES_THUNDURUS                   ] = ABILITY_DEFIANT,
    [SPECIES_RESHIRAM                    ] = ABILITY_NONE,
    [SPECIES_ZEKROM                      ] = ABILITY_NONE,
    [SPECIES_LANDORUS                    ] = ABILITY_SHEER_FORCE,
    [SPECIES_KYUREM                      ] = ABILITY_NONE,
    [SPECIES_KELDEO                      ] = ABILITY_NONE,
    [SPECIES_MELOETTA                    ] = ABILITY_NONE,
    [SPECIES_GENESECT                    ] = ABILITY_NONE,
    [SPECIES_CHESPIN                     ] = ABILITY_BULLETPROOF,
    [SPECIES_QUILLADIN                   ] = ABILITY_BULLETPROOF,
    [SPECIES_CHESNAUGHT                  ] = ABILITY_BULLETPROOF,
    [SPECIES_FENNEKIN                    ] = ABILITY_MAGICIAN,
    [SPECIES_BRAIXEN                     ] = ABILITY_MAGICIAN,
    [SPECIES_DELPHOX                     ] = ABILITY_MAGICIAN,
    [SPECIES_FROAKIE                     ] = ABILITY_PROTEAN,
    [SPECIES_FROGADIER                   ] = ABILITY_PROTEAN,
    [SPECIES_GRENINJA                    ] = ABILITY_PROTEAN,
    [SPECIES_BUNNELBY                    ] = ABILITY_HUGE_POWER,
    [SPECIES_DIGGERSBY                   ] = ABILITY_HUGE_POWER,
    [SPECIES_FLETCHLING                  ] = ABILITY_GALE_WINGS,
    [SPECIES_FLETCHINDER                 ] = ABILITY_GALE_WINGS,
    [SPECIES_TALONFLAME                  ] = ABILITY_GALE_WINGS,
    [SPECIES_SCATTERBUG                  ] = ABILITY_FRIEND_GUARD,
    [SPECIES_SPEWPA                      ] = ABILITY_FRIEND_GUARD,
    [SPECIES_VIVILLON                    ] = ABILITY_FRIEND_GUARD,
    [SPECIES_LITLEO                      ] = ABILITY_MOXIE,
    [SPECIES_PYROAR                      ] = ABILITY_MOXIE,
    [SPECIES_FLABEBE                     ] = ABILITY_SYMBIOSIS,
    [SPECIES_FLOETTE                     ] = ABILITY_SYMBIOSIS,
    [SPECIES_FLORGES                     ] = ABILITY_SYMBIOSIS,
    [SPECIES_SKIDDO                      ] = ABILITY_GRASS_PELT,
    [SPECIES_GOGOAT                      ] = ABILITY_GRASS_PELT,
    [SPECIES_PANCHAM                     ] = ABILITY_SCRAPPY,
    [SPECIES_PANGORO                     ] = ABILITY_SCRAPPY,
    [SPECIES_FURFROU                     ] = ABILITY_NONE,
    [SPECIES_ESPURR                      ] = ABILITY_OWN_TEMPO,
    [SPECIES_MEOWSTIC                    ] = ABILITY_PRANKSTER,
    [SPECIES_HONEDGE                     ] = ABILITY_NONE,
    [SPECIES_DOUBLADE                    ] = ABILITY_NONE,
    [SPECIES_AEGISLASH                   ] = ABILITY_NONE,
    [SPECIES_SPRITZEE                    ] = ABILITY_AROMA_VEIL,
    [SPECIES_AROMATISSE                  ] = ABILITY_AROMA_VEIL,
    [SPECIES_SWIRLIX                     ] = ABILITY_UNBURDEN,
    [SPECIES_SLURPUFF                    ] = ABILITY_UNBURDEN,
    [SPECIES_INKAY                       ] = ABILITY_INFILTRATOR,
    [SPECIES_MALAMAR                     ] = ABILITY_INFILTRATOR,
    [SPECIES_BINACLE                     ] = ABILITY_PICKPOCKET,
    [SPECIES_BARBARACLE                  ] = ABILITY_PICKPOCKET,
    [SPECIES_SKRELP                      ] = ABILITY_ADAPTABILITY,
    [SPECIES_DRAGALGE                    ] = ABILITY_ADAPTABILITY,
    [SPECIES_CLAUNCHER                   ] = ABILITY_NONE,
    [SPECIES_CLAWITZER                   ] = ABILITY_NONE,
    [SPECIES_HELIOPTILE                  ] = ABILITY_SOLAR_POWER,
    [SPECIES_HELIOLISK                   ] = ABILITY_SOLAR_POWER,
    [SPECIES_TYRUNT                      ] = ABILITY_STURDY,
    [SPECIES_TYRANTRUM                   ] = ABILITY_ROCK_HEAD,
    [SPECIES_AMAURA                      ] = ABILITY_SNOW_WARNING,
    [SPECIES_AURORUS                     ] = ABILITY_SNOW_WARNING,
    [SPECIES_SYLVEON                     ] = ABILITY_NONE,
    [SPECIES_HAWLUCHA                    ] = ABILITY_MOLD_BREAKER,
    [SPECIES_DEDENNE                     ] = ABILITY_PLUS,
    [SPECIES_CARBINK                     ] = ABILITY_STURDY,
    [SPECIES_GOOMY                       ] = ABILITY_GOOEY,
    [SPECIES_SLIGGOO                     ] = ABILITY_GOOEY,
    [SPECIES_GOODRA                      ] = ABILITY_GOOEY,
    [SPECIES_KLEFKI                      ] = ABILITY_MAGICIAN,
    [SPECIES_PHANTUMP                    ] = ABILITY_HARVEST,
    [SPECIES_TREVENANT                   ] = ABILITY_HARVEST,
    [SPECIES_PUMPKABOO                   ] = ABILITY_INSOMNIA,
    [SPECIES_GOURGEIST                   ] = ABILITY_INSOMNIA,
    [SPECIES_BERGMITE                    ] = ABILITY_STURDY,
    [SPECIES_AVALUGG                     ] = ABILITY_STURDY,
    [SPECIES_NOIBAT                      ] = ABILITY_TELEPATHY,
    [SPECIES_NOIVERN                     ] = ABILITY_TELEPATHY,
    [SPECIES_XERNEAS                     ] = ABILITY_NONE,
    [SPECIES_YVELTAL                     ] = ABILITY_NONE,
    [SPECIES_ZYGARDE                     ] = ABILITY_NONE,
    [SPECIES_DIANCIE                     ] = ABILITY_NONE,
    [SPECIES_HOOPA                       ] = ABILITY_NONE,
    [SPECIES_VOLCANION                   ] = ABILITY_NONE,
    [SPECIES_ROWLET                      ] = ABILITY_LONG_REACH,
    [SPECIES_DARTRIX                     ] = ABILITY_LONG_REACH,
    [SPECIES_DECIDUEYE                   ] = ABILITY_LONG_REACH,
    [SPECIES_LITTEN                      ] = ABILITY_INTIMIDATE,
    [SPECIES_TORRACAT                    ] = ABILITY_INTIMIDATE,
    [SPECIES_INCINEROAR                  ] = ABILITY_INTIMIDATE,
    [SPECIES_POPPLIO                     ] = ABILITY_LIQUID_VOICE,
    [SPECIES_BRIONNE                     ] = ABILITY_LIQUID_VOICE,
    [SPECIES_PRIMARINA                   ] = ABILITY_LIQUID_VOICE,
    [SPECIES_PIKIPEK                     ] = ABILITY_PICKUP,
    [SPECIES_TRUMBEAK                    ] = ABILITY_PICKUP,
    [SPECIES_TOUCANNON                   ] = ABILITY_SHEER_FORCE,
    [SPECIES_YUNGOOS                     ] = ABILITY_ADAPTABILITY,
    [SPECIES_GUMSHOOS                    ] = ABILITY_ADAPTABILITY,
    [SPECIES_GRUBBIN                     ] = ABILITY_NONE,
    [SPECIES_CHARJABUG                   ] = ABILITY_NONE,
    [SPECIES_VIKAVOLT                    ] = ABILITY_NONE,
    [SPECIES_CRABRAWLER                  ] = ABILITY_ANGER_POINT,
    [SPECIES_CRABOMINABLE                ] = ABILITY_ANGER_POINT,
    [SPECIES_ORICORIO                    ] = ABILITY_NONE,
    [SPECIES_CUTIEFLY                    ] = ABILITY_SWEET_VEIL,
    [SPECIES_RIBOMBEE                    ] = ABILITY_SWEET_VEIL,
    [SPECIES_ROCKRUFF                    ] = ABILITY_STEADFAST,
    [SPECIES_LYCANROC                    ] = ABILITY_STEADFAST,
    [SPECIES_WISHIWASHI                  ] = ABILITY_NONE,
    [SPECIES_MAREANIE                    ] = ABILITY_REGENERATOR,
    [SPECIES_TOXAPEX                     ] = ABILITY_REGENERATOR,
    [SPECIES_MUDBRAY                     ] = ABILITY_INNER_FOCUS,
    [SPECIES_MUDSDALE                    ] = ABILITY_INNER_FOCUS,
    [SPECIES_DEWPIDER                    ] = ABILITY_WATER_ABSORB,
    [SPECIES_ARAQUANID                   ] = ABILITY_WATER_ABSORB,
    [SPECIES_FOMANTIS                    ] = ABILITY_CONTRARY,
    [SPECIES_LURANTIS                    ] = ABILITY_CONTRARY,
    [SPECIES_MORELULL                    ] = ABILITY_RAIN_DISH,
    [SPECIES_SHIINOTIC                   ] = ABILITY_RAIN_DISH,
    [SPECIES_SALANDIT                    ] = ABILITY_OBLIVIOUS,
    [SPECIES_SALAZZLE                    ] = ABILITY_OBLIVIOUS,
    [SPECIES_STUFFUL                     ] = ABILITY_CUTE_CHARM,
    [SPECIES_BEWEAR                      ] = ABILITY_UNNERVE,
    [SPECIES_BOUNSWEET                   ] = ABILITY_SWEET_VEIL,
    [SPECIES_STEENEE                     ] = ABILITY_SWEET_VEIL,
    [SPECIES_TSAREENA                    ] = ABILITY_SWEET_VEIL,
    [SPECIES_COMFEY                      ] = ABILITY_NATURAL_CURE,
    [SPECIES_ORANGURU                    ] = ABILITY_SYMBIOSIS,
    [SPECIES_PASSIMIAN                   ] = ABILITY_DEFIANT,
    [SPECIES_WIMPOD                      ] = ABILITY_NONE,
    [SPECIES_GOLISOPOD                   ] = ABILITY_NONE,
    [SPECIES_SANDYGAST                   ] = ABILITY_SAND_VEIL,
    [SPECIES_PALOSSAND                   ] = ABILITY_SAND_VEIL,
    [SPECIES_PYUKUMUKU                   ] = ABILITY_UNAWARE,
    [SPECIES_TYPE_NULL                   ] = ABILITY_NONE,
    [SPECIES_SILVALLY                    ] = ABILITY_NONE,
    [SPECIES_MINIOR                      ] = ABILITY_NONE,
    [SPECIES_KOMALA                      ] = ABILITY_NONE,
    [SPECIES_TURTONATOR                  ] = ABILITY_NONE,
    [SPECIES_TOGEDEMARU                  ] = ABILITY_STURDY,
    [SPECIES_MIMIKYU                     ] = ABILITY_NONE,
    [SPECIES_BRUXISH                     ] = ABILITY_WONDER_SKIN,
    [SPECIES_DRAMPA                      ] = ABILITY_CLOUD_NINE,
    [SPECIES_DHELMISE                    ] = ABILITY_NONE,
    [SPECIES_JANGMO_O                    ] = ABILITY_OVERCOAT,
    [SPECIES_HAKAMO_O                    ] = ABILITY_OVERCOAT,
    [SPECIES_KOMMO_O                     ] = ABILITY_OVERCOAT,
    [SPECIES_TAPU_KOKO                   ] = ABILITY_TELEPATHY,
    [SPECIES_TAPU_LELE                   ] = ABILITY_TELEPATHY,
    [SPECIES_TAPU_BULU                   ] = ABILITY_TELEPATHY,
    [SPECIES_TAPU_FINI                   ] = ABILITY_TELEPATHY,
    [SPECIES_COSMOG                      ] = ABILITY_NONE,
    [SPECIES_COSMOEM                     ] = ABILITY_NONE,
    [SPECIES_SOLGALEO                    ] = ABILITY_NONE,
    [SPECIES_LUNALA                      ] = ABILITY_NONE,
    [SPECIES_NIHILEGO                    ] = ABILITY_NONE,
    [SPECIES_BUZZWOLE                    ] = ABILITY_NONE,
    [SPECIES_PHEROMOSA                   ] = ABILITY_NONE,
    [SPECIES_XURKITREE                   ] = ABILITY_NONE,
    [SPECIES_CELESTEELA                  ] = ABILITY_NONE,
    [SPECIES_KARTANA                     ] = ABILITY_NONE,
    [SPECIES_GUZZLORD                    ] = ABILITY_NONE,
    [SPECIES_NECROZMA                    ] = ABILITY_NONE,
    [SPECIES_MAGEARNA                    ] = ABILITY_NONE,
    [SPECIES_MARSHADOW                   ] = ABILITY_NONE,
    [SPECIES_POIPOLE                     ] = ABILITY_NONE,
    [SPECIES_NAGANADEL                   ] = ABILITY_NONE,
    [SPECIES_STAKATAKA                   ] = ABILITY_NONE,
    [SPECIES_BLACEPHALON                 ] = ABILITY_NONE,
    [SPECIES_ZERAORA                     ] = ABILITY_NONE,
    [SPECIES_MELTAN                      ] = ABILITY_NONE,
    [SPECIES_MELMETAL                    ] = ABILITY_NONE,
    [SPECIES_GROOKEY                     ] = ABILITY_GRASSY_SURGE,
    [SPECIES_THWACKEY                    ] = ABILITY_GRASSY_SURGE,
    [SPECIES_RILLABOOM                   ] = ABILITY_GRASSY_SURGE,
    [SPECIES_SCORBUNNY                   ] = ABILITY_LIBERO,
    [SPECIES_RABOOT                      ] = ABILITY_LIBERO,
    [SPECIES_CINDERACE                   ] = ABILITY_LIBERO,
    [SPECIES_SOBBLE                      ] = ABILITY_SNIPER,
    [SPECIES_DRIZZILE                    ] = ABILITY_SNIPER,
    [SPECIES_INTELEON                    ] = ABILITY_SNIPER,
    [SPECIES_SKWOVET                     ] = ABILITY_GLUTTONY,
    [SPECIES_GREEDENT                    ] = ABILITY_GLUTTONY,
    [SPECIES_ROOKIDEE                    ] = ABILITY_BIG_PECKS,
    [SPECIES_CORVISQUIRE                 ] = ABILITY_BIG_PECKS,
    [SPECIES_CORVIKNIGHT                 ] = ABILITY_MIRROR_ARMOR,
    [SPECIES_BLIPBUG                     ] = ABILITY_TELEPATHY,
    [SPECIES_DOTTLER                     ] = ABILITY_TELEPATHY,
    [SPECIES_ORBEETLE                    ] = ABILITY_TELEPATHY,
    [SPECIES_NICKIT                      ] = ABILITY_STAKEOUT,
    [SPECIES_THIEVUL                     ] = ABILITY_STAKEOUT,
    [SPECIES_GOSSIFLEUR                  ] = ABILITY_EFFECT_SPORE,
    [SPECIES_ELDEGOSS                    ] = ABILITY_EFFECT_SPORE,
    [SPECIES_WOOLOO                      ] = ABILITY_BULLETPROOF,
    [SPECIES_DUBWOOL                     ] = ABILITY_BULLETPROOF,
    [SPECIES_CHEWTLE                     ] = ABILITY_SWIFT_SWIM,
    [SPECIES_DREDNAW                     ] = ABILITY_SWIFT_SWIM,
    [SPECIES_YAMPER                      ] = ABILITY_RATTLED,
    [SPECIES_BOLTUND                     ] = ABILITY_COMPETITIVE,
    [SPECIES_ROLYCOLY                    ] = ABILITY_FLASH_FIRE,
    [SPECIES_CARKOL                      ] = ABILITY_FLASH_FIRE,
    [SPECIES_COALOSSAL                   ] = ABILITY_FLASH_FIRE,
    [SPECIES_APPLIN                      ] = ABILITY_BULLETPROOF,
    [SPECIES_FLAPPLE                     ] = ABILITY_HUSTLE,
    [SPECIES_APPLETUN                    ] = ABILITY_THICK_FAT,
    [SPECIES_SILICOBRA                   ] = ABILITY_SAND_VEIL,
    [SPECIES_SANDACONDA                  ] = ABILITY_SAND_VEIL,
    [SPECIES_CRAMORANT                   ] = ABILITY_NONE,
    [SPECIES_ARROKUDA                    ] = ABILITY_PROPELLER_TAIL,
    [SPECIES_BARRASKEWDA                 ] = ABILITY_PROPELLER_TAIL,
    [SPECIES_TOXEL                       ] = ABILITY_KLUTZ,
    [SPECIES_TOXTRICITY                  ] = ABILITY_TECHNICIAN,
    [SPECIES_SIZZLIPEDE                  ] = ABILITY_FLAME_BODY,
    [SPECIES_CENTISKORCH                 ] = ABILITY_FLAME_BODY,
    [SPECIES_CLOBBOPUS                   ] = ABILITY_TECHNICIAN,
    [SPECIES_GRAPPLOCT                   ] = ABILITY_TECHNICIAN,
    [SPECIES_SINISTEA                    ] = ABILITY_CURSED_BODY,
    [SPECIES_POLTEAGEIST                 ] = ABILITY_CURSED_BODY,
    [SPECIES_HATENNA                     ] = ABILITY_MAGIC_BOUNCE,
    [SPECIES_HATTREM                     ] = ABILITY_MAGIC_BOUNCE,
    [SPECIES_HATTERENE                   ] = ABILITY_MAGIC_BOUNCE,
    [SPECIES_IMPIDIMP                    ] = ABILITY_PICKPOCKET,
    [SPECIES_MORGREM                     ] = ABILITY_PICKPOCKET,
    [SPECIES_GRIMMSNARL                  ] = ABILITY_PICKPOCKET,
    [SPECIES_OBSTAGOON                   ] = ABILITY_DEFIANT,
    [SPECIES_PERRSERKER                  ] = ABILITY_STEELY_SPIRIT,
    [SPECIES_CURSOLA                     ] = ABILITY_PERISH_BODY,
    [SPECIES_SIRFETCHD                   ] = ABILITY_SCRAPPY,
    [SPECIES_MR_RIME                     ] = ABILITY_ICE_BODY,
    [SPECIES_RUNERIGUS                   ] = ABILITY_NONE,
    [SPECIES_MILCERY                     ] = ABILITY_AROMA_VEIL,
    [SPECIES_ALCREMIE                    ] = ABILITY_AROMA_VEIL,
    [SPECIES_FALINKS                     ] = ABILITY_DEFIANT,
    [SPECIES_PINCURCHIN                  ] = ABILITY_ELECTRIC_SURGE,
    [SPECIES_SNOM                        ] = ABILITY_ICE_SCALES,
    [SPECIES_FROSMOTH                    ] = ABILITY_ICE_SCALES,
    [SPECIES_STONJOURNER                 ] = ABILITY_NONE,
    [SPECIES_EISCUE                      ] = ABILITY_NONE,
    [SPECIES_INDEEDEE                    ] = ABILITY_PSYCHIC_SURGE,
    [SPECIES_MORPEKO                     ] = ABILITY_NONE,
    [SPECIES_CUFANT                      ] = ABILITY_HEAVY_METAL,
    [SPECIES_COPPERAJAH                  ] = ABILITY_HEAVY_METAL,
    [SPECIES_DRACOZOLT                   ] = ABILITY_SAND_RUSH,
    [SPECIES_ARCTOZOLT                   ] = ABILITY_SLUSH_RUSH,
    [SPECIES_DRACOVISH                   ] = ABILITY_SAND_RUSH,
    [SPECIES_ARCTOVISH                   ] = ABILITY_SLUSH_RUSH,
    [SPECIES_DURALUDON                   ] = ABILITY_STALWART,
    [SPECIES_DREEPY                      ] = ABILITY_CURSED_BODY,
    [SPECIES_DRAKLOAK                    ] = ABILITY_CURSED_BODY,
    [SPECIES_DRAGAPULT                   ] = ABILITY_CURSED_BODY,
    [SPECIES_ZACIAN                      ] = ABILITY_NONE,
    [SPECIES_ZAMAZENTA                   ] = ABILITY_NONE,
    [SPECIES_ETERNATUS                   ] = ABILITY_NONE,
    [SPECIES_KUBFU                       ] = ABILITY_NONE,
    [SPECIES_URSHIFU                     ] = ABILITY_NONE,
    [SPECIES_ZARUDE                      ] = ABILITY_NONE,
    [SPECIES_REGIELEKI                   ] = ABILITY_NONE,
    [SPECIES_REGIDRAGO                   ] = ABILITY_NONE,
    [SPECIES_GLASTRIER                   ] = ABILITY_NONE,
    [SPECIES_SPECTRIER                   ] = ABILITY_NONE,
    [SPECIES_CALYREX                     ] = ABILITY_NONE,
    [SPECIES_WYRDEER                     ] = ABILITY_SAP_SIPPER,
    [SPECIES_KLEAVOR                     ] = ABILITY_SHARPNESS,
    [SPECIES_URSALUNA                    ] = ABILITY_UNNERVE,
    [SPECIES_BASCULEGION                 ] = ABILITY_MOLD_BREAKER,
    [SPECIES_SNEASLER                    ] = ABILITY_POISON_TOUCH,
    [SPECIES_OVERQWIL                    ] = ABILITY_INTIMIDATE,
    [SPECIES_ENAMORUS                    ] = ABILITY_CONTRARY,
    [SPECIES_SPRIGATITO                  ] = ABILITY_PROTEAN,
    [SPECIES_FLORAGATO                   ] = ABILITY_PROTEAN,
    [SPECIES_MEOWSCARADA                 ] = ABILITY_PROTEAN,
    [SPECIES_FUECOCO                     ] = ABILITY_UNAWARE,
    [SPECIES_CROCALOR                    ] = ABILITY_UNAWARE,
    [SPECIES_SKELEDIRGE                  ] = ABILITY_UNAWARE,
    [SPECIES_QUAXLY                      ] = ABILITY_MOXIE,
    [SPECIES_QUAXWELL                    ] = ABILITY_MOXIE,
    [SPECIES_QUAQUAVAL                   ] = ABILITY_MOXIE,
    [SPECIES_LECHONK                     ] = ABILITY_THICK_FAT,
    [SPECIES_OINKOLOGNE                  ] = ABILITY_THICK_FAT,
    [SPECIES_TAROUNTULA                  ] = ABILITY_STAKEOUT,
    [SPECIES_SPIDOPS                     ] = ABILITY_STAKEOUT,
    [SPECIES_NYMBLE                      ] = ABILITY_TINTED_LENS,
    [SPECIES_LOKIX                       ] = ABILITY_TINTED_LENS,
    [SPECIES_PAWMI                       ] = ABILITY_IRON_FIST,
    [SPECIES_PAWMO                       ] = ABILITY_IRON_FIST,
    [SPECIES_PAWMOT                      ] = ABILITY_IRON_FIST,
    [SPECIES_TANDEMAUS                   ] = ABILITY_OWN_TEMPO,
    [SPECIES_MAUSHOLD                    ] = ABILITY_TECHNICIAN,
    [SPECIES_FIDOUGH                     ] = ABILITY_KLUTZ,
    [SPECIES_DACHSBUN                    ] = ABILITY_AROMA_VEIL,
    [SPECIES_SMOLIV                      ] = ABILITY_HARVEST,
    [SPECIES_DOLLIV                      ] = ABILITY_HARVEST,
    [SPECIES_ARBOLIVA                    ] = ABILITY_HARVEST,
    [SPECIES_SQUAWKABILLY                ] = ABILITY_GUTS,
    [SPECIES_NACLI                       ] = ABILITY_CLEAR_BODY,
    [SPECIES_NACLSTACK                   ] = ABILITY_CLEAR_BODY,
    [SPECIES_GARGANACL                   ] = ABILITY_CLEAR_BODY,
    [SPECIES_CHARCADET                   ] = ABILITY_FLAME_BODY,
    [SPECIES_ARMAROUGE                   ] = ABILITY_WEAK_ARMOR,
    [SPECIES_CERULEDGE                   ] = ABILITY_WEAK_ARMOR,
    [SPECIES_TADBULB                     ] = ABILITY_DAMP,
    [SPECIES_BELLIBOLT                   ] = ABILITY_DAMP,
    [SPECIES_WATTREL                     ] = ABILITY_COMPETITIVE,
    [SPECIES_KILOWATTREL                 ] = ABILITY_COMPETITIVE,
    [SPECIES_MASCHIFF                    ] = ABILITY_STAKEOUT,
    [SPECIES_MABOSSTIFF                  ] = ABILITY_STAKEOUT,
    [SPECIES_SHROODLE                    ] = ABILITY_PRANKSTER,
    [SPECIES_GRAFAIAI                    ] = ABILITY_PRANKSTER,
    [SPECIES_BRAMBLIN                    ] = ABILITY_INFILTRATOR,
    [SPECIES_BRAMBLEGHAST                ] = ABILITY_INFILTRATOR,
    [SPECIES_TOEDSCOOL                   ] = ABILITY_NONE,
    [SPECIES_TOEDSCRUEL                  ] = ABILITY_NONE,
    [SPECIES_KLAWF                       ] = ABILITY_REGENERATOR,
    [SPECIES_CAPSAKID                    ] = ABILITY_KLUTZ,
    [SPECIES_SCOVILLAIN                  ] = ABILITY_MOODY,
    [SPECIES_RELLOR                      ] = ABILITY_SHED_SKIN,
    [SPECIES_RABSCA                      ] = ABILITY_TELEPATHY,
    [SPECIES_FLITTLE                     ] = ABILITY_SPEED_BOOST,
    [SPECIES_ESPATHRA                    ] = ABILITY_SPEED_BOOST,
    [SPECIES_TINKATINK                   ] = ABILITY_PICKPOCKET,
    [SPECIES_TINKATUFF                   ] = ABILITY_PICKPOCKET,
    [SPECIES_TINKATON                    ] = ABILITY_PICKPOCKET,
    [SPECIES_WIGLETT                     ] = ABILITY_SAND_VEIL,
    [SPECIES_WUGTRIO                     ] = ABILITY_SAND_VEIL,
    [SPECIES_BOMBIRDIER                  ] = ABILITY_ROCKY_PAYLOAD,
    [SPECIES_FINIZEN                     ] = ABILITY_NONE,
    [SPECIES_PALAFIN                     ] = ABILITY_NONE,
    [SPECIES_VAROOM                      ] = ABILITY_SLOW_START,
    [SPECIES_REVAVROOM                   ] = ABILITY_FILTER,
    [SPECIES_CYCLIZAR                    ] = ABILITY_REGENERATOR,
    [SPECIES_ORTHWORM                    ] = ABILITY_SAND_VEIL,
    [SPECIES_GLIMMET                     ] = ABILITY_CORROSION,
    [SPECIES_GLIMMORA                    ] = ABILITY_CORROSION,
    [SPECIES_GREAVARD                    ] = ABILITY_FLUFFY,
    [SPECIES_HOUNDSTONE                  ] = ABILITY_FLUFFY,
    [SPECIES_FLAMIGO                     ] = ABILITY_COSTAR,
    [SPECIES_CETODDLE                    ] = ABILITY_SHEER_FORCE,
    [SPECIES_CETITAN                     ] = ABILITY_SHEER_FORCE,
    [SPECIES_VELUZA                      ] = ABILITY_SHARPNESS,
    [SPECIES_DONDOZO                     ] = ABILITY_WATER_VEIL,
    [SPECIES_TATSUGIRI                   ] = ABILITY_STORM_DRAIN,
    [SPECIES_ANNIHILAPE                  ] = ABILITY_DEFIANT,
    [SPECIES_CLODSIRE                    ] = ABILITY_UNAWARE,
    [SPECIES_FARIGIRAF                   ] = ABILITY_SAP_SIPPER,
    [SPECIES_DUDUNSPARCE                 ] = ABILITY_RATTLED,
    [SPECIES_KINGAMBIT                   ] = ABILITY_PRESSURE,
    [SPECIES_GREAT_TUSK                  ] = ABILITY_NONE,
    [SPECIES_SCREAM_TAIL                 ] = ABILITY_NONE,
    [SPECIES_BRUTE_BONNET                ] = ABILITY_NONE,
    [SPECIES_FLUTTER_MANE                ] = ABILITY_NONE,
    [SPECIES_SLITHER_WING                ] = ABILITY_NONE,
    [SPECIES_SANDY_SHOCKS                ] = ABILITY_NONE,
    [SPECIES_IRON_TREADS                 ] = ABILITY_NONE,
    [SPECIES_IRON_BUNDLE                 ] = ABILITY_NONE,
    [SPECIES_IRON_HANDS                  ] = ABILITY_NONE,
    [SPECIES_IRON_JUGULIS                ] = ABILITY_NONE,
    [SPECIES_IRON_MOTH                   ] = ABILITY_NONE,
    [SPECIES_IRON_THORNS                 ] = ABILITY_NONE,
    [SPECIES_FRIGIBAX                    ] = ABILITY_ICE_BODY,
    [SPECIES_ARCTIBAX                    ] = ABILITY_ICE_BODY,
    [SPECIES_BAXCALIBUR                  ] = ABILITY_ICE_BODY,
    [SPECIES_GIMMIGHOUL                  ] = ABILITY_NONE,
    [SPECIES_GHOLDENGO                   ] = ABILITY_NONE,
    [SPECIES_WO_CHIEN                    ] = ABILITY_NONE,
    [SPECIES_CHIEN_PAO                   ] = ABILITY_NONE,
    [SPECIES_TING_LU                     ] = ABILITY_NONE,
    [SPECIES_CHI_YU                      ] = ABILITY_NONE,
    [SPECIES_ROARING_MOON                ] = ABILITY_NONE,
    [SPECIES_IRON_VALIANT                ] = ABILITY_NONE,
    [SPECIES_KORAIDON                    ] = ABILITY_NONE,
    [SPECIES_MIRAIDON                    ] = ABILITY_NONE,
    [SPECIES_WALKING_WAKE                ] = ABILITY_NONE,
    [SPECIES_IRON_LEAVES                 ] = ABILITY_NONE,
    [SPECIES_DIPPLIN                     ] = ABILITY_STICKY_HOLD,
    [SPECIES_POLTCHAGEIST                ] = ABILITY_HEATPROOF,
    [SPECIES_SINISTCHA                   ] = ABILITY_HEATPROOF,
    [SPECIES_OKIDOGI                     ] = ABILITY_GUARD_DOG,
    [SPECIES_MUNKIDORI                   ] = ABILITY_FRISK,
    [SPECIES_FEZANDIPITI                 ] = ABILITY_TECHNICIAN,
    [SPECIES_OGERPON                     ] = ABILITY_NONE,
    [SPECIES_ARCHALUDON                  ] = ABILITY_STALWART,
    [SPECIES_HYDRAPPLE                   ] = ABILITY_STICKY_HOLD,
    [SPECIES_GOUGING_FIRE                ] = ABILITY_NONE,
    [SPECIES_RAGING_BOLT                 ] = ABILITY_NONE,
    [SPECIES_IRON_BOULDER                ] = ABILITY_NONE,
    [SPECIES_IRON_CROWN                  ] = ABILITY_NONE,
    [SPECIES_TERAPAGOS                   ] = ABILITY_NONE,
    [SPECIES_PECHARUNT                   ] = ABILITY_NONE,
    [SPECIES_MEGA_VENUSAUR               ] = ABILITY_NONE,
    [SPECIES_MEGA_CHARIZARD_X            ] = ABILITY_NONE,
    [SPECIES_MEGA_CHARIZARD_Y            ] = ABILITY_NONE,
    [SPECIES_MEGA_BLASTOISE              ] = ABILITY_NONE,
    [SPECIES_MEGA_BEEDRILL               ] = ABILITY_NONE,
    [SPECIES_MEGA_PIDGEOT                ] = ABILITY_NONE,
    [SPECIES_MEGA_ALAKAZAM               ] = ABILITY_NONE,
    [SPECIES_MEGA_SLOWBRO                ] = ABILITY_NONE,
    [SPECIES_MEGA_GENGAR                 ] = ABILITY_NONE,
    [SPECIES_MEGA_KANGASKHAN             ] = ABILITY_NONE,
    [SPECIES_MEGA_PINSIR                 ] = ABILITY_NONE,
    [SPECIES_MEGA_GYARADOS               ] = ABILITY_NONE,
    [SPECIES_MEGA_AERODACTYL             ] = ABILITY_NONE,
    [SPECIES_MEGA_MEWTWO_X               ] = ABILITY_NONE,
    [SPECIES_MEGA_MEWTWO_Y               ] = ABILITY_NONE,
    [SPECIES_MEGA_AMPHAROS               ] = ABILITY_NONE,
    [SPECIES_MEGA_STEELIX                ] = ABILITY_NONE,
    [SPECIES_MEGA_SCIZOR                 ] = ABILITY_NONE,
    [SPECIES_MEGA_HERACROSS              ] = ABILITY_NONE,
    [SPECIES_MEGA_HOUNDOOM               ] = ABILITY_NONE,
    [SPECIES_MEGA_TYRANITAR              ] = ABILITY_NONE,
    [SPECIES_MEGA_SCEPTILE               ] = ABILITY_NONE,
    [SPECIES_MEGA_BLAZIKEN               ] = ABILITY_NONE,
    [SPECIES_MEGA_SWAMPERT               ] = ABILITY_NONE,
    [SPECIES_MEGA_GARDEVOIR              ] = ABILITY_NONE,
    [SPECIES_MEGA_SABLEYE                ] = ABILITY_NONE,
    [SPECIES_MEGA_MAWILE                 ] = ABILITY_NONE,
    [SPECIES_MEGA_AGGRON                 ] = ABILITY_NONE,
    [SPECIES_MEGA_MEDICHAM               ] = ABILITY_NONE,
    [SPECIES_MEGA_MANECTRIC              ] = ABILITY_NONE,
    [SPECIES_MEGA_SHARPEDO               ] = ABILITY_NONE,
    [SPECIES_MEGA_CAMERUPT               ] = ABILITY_NONE,
    [SPECIES_MEGA_ALTARIA                ] = ABILITY_NONE,
    [SPECIES_MEGA_BANETTE                ] = ABILITY_NONE,
    [SPECIES_MEGA_ABSOL                  ] = ABILITY_NONE,
    [SPECIES_MEGA_GLALIE                 ] = ABILITY_NONE,
    [SPECIES_MEGA_SALAMENCE              ] = ABILITY_NONE,
    [SPECIES_MEGA_METAGROSS              ] = ABILITY_NONE,
    [SPECIES_MEGA_LATIAS                 ] = ABILITY_NONE,
    [SPECIES_MEGA_LATIOS                 ] = ABILITY_NONE,
    [SPECIES_MEGA_RAYQUAZA               ] = ABILITY_NONE,
    [SPECIES_MEGA_LOPUNNY                ] = ABILITY_NONE,
    [SPECIES_MEGA_GARCHOMP               ] = ABILITY_NONE,
    [SPECIES_MEGA_LUCARIO                ] = ABILITY_NONE,
    [SPECIES_MEGA_ABOMASNOW              ] = ABILITY_NONE,
    [SPECIES_MEGA_GALLADE                ] = ABILITY_NONE,
    [SPECIES_MEGA_AUDINO                 ] = ABILITY_NONE,
    [SPECIES_MEGA_DIANCIE                ] = ABILITY_NONE,
    [SPECIES_KYOGRE_PRIMAL               ] = ABILITY_NONE,
    [SPECIES_GROUDON_PRIMAL              ] = ABILITY_NONE,
    [SPECIES_RATTATA_ALOLAN              ] = ABILITY_THICK_FAT,
    [SPECIES_RATICATE_ALOLAN             ] = ABILITY_THICK_FAT,
    [SPECIES_RAICHU_ALOLAN               ] = ABILITY_NONE,
    [SPECIES_SANDSHREW_ALOLAN            ] = ABILITY_SLUSH_RUSH,
    [SPECIES_SANDSLASH_ALOLAN            ] = ABILITY_SLUSH_RUSH,
    [SPECIES_VULPIX_ALOLAN               ] = ABILITY_SNOW_WARNING,
    [SPECIES_NINETALES_ALOLAN            ] = ABILITY_SNOW_WARNING,
    [SPECIES_DIGLETT_ALOLAN              ] = ABILITY_SAND_FORCE,
    [SPECIES_DUGTRIO_ALOLAN              ] = ABILITY_SAND_FORCE,
    [SPECIES_MEOWTH_ALOLAN               ] = ABILITY_RATTLED,
    [SPECIES_PERSIAN_ALOLAN              ] = ABILITY_RATTLED,
    [SPECIES_GEODUDE_ALOLAN              ] = ABILITY_GALVANIZE,
    [SPECIES_GRAVELER_ALOLAN             ] = ABILITY_GALVANIZE,
    [SPECIES_GOLEM_ALOLAN                ] = ABILITY_GALVANIZE,
    [SPECIES_GRIMER_ALOLAN               ] = ABILITY_POWER_OF_ALCHEMY,
    [SPECIES_MUK_ALOLAN                  ] = ABILITY_POWER_OF_ALCHEMY,
    [SPECIES_EXEGGUTOR_ALOLAN            ] = ABILITY_HARVEST,
    [SPECIES_MAROWAK_ALOLAN              ] = ABILITY_ROCK_HEAD,
    [SPECIES_MEOWTH_GALARIAN             ] = ABILITY_UNNERVE,
    [SPECIES_PONYTA_GALARIAN             ] = ABILITY_ANTICIPATION,
    [SPECIES_RAPIDASH_GALARIAN           ] = ABILITY_ANTICIPATION,
    [SPECIES_SLOWPOKE_GALARIAN           ] = ABILITY_REGENERATOR,
    [SPECIES_SLOWBRO_GALARIAN            ] = ABILITY_REGENERATOR,
    [SPECIES_FARFETCHD_GALARIAN          ] = ABILITY_SCRAPPY,
    [SPECIES_WEEZING_GALARIAN            ] = ABILITY_MISTY_SURGE,
    [SPECIES_MR_MIME_GALARIAN            ] = ABILITY_ICE_BODY,
    [SPECIES_ARTICUNO_GALARIAN           ] = ABILITY_NONE,
    [SPECIES_ZAPDOS_GALARIAN             ] = ABILITY_NONE,
    [SPECIES_MOLTRES_GALARIAN            ] = ABILITY_NONE,
    [SPECIES_SLOWKING_GALARIAN           ] = ABILITY_REGENERATOR,
    [SPECIES_CORSOLA_GALARIAN            ] = ABILITY_CURSED_BODY,
    [SPECIES_ZIGZAGOON_GALARIAN          ] = ABILITY_QUICK_FEET,
    [SPECIES_LINOONE_GALARIAN            ] = ABILITY_QUICK_FEET,
    [SPECIES_DARUMAKA_GALARIAN           ] = ABILITY_INNER_FOCUS,
    [SPECIES_DARMANITAN_GALARIAN         ] = ABILITY_ZEN_MODE,
    [SPECIES_YAMASK_GALARIAN             ] = ABILITY_NONE,
    [SPECIES_STUNFISK_GALARIAN           ] = ABILITY_NONE,
    [SPECIES_PIKACHU_COSPLAY             ] = ABILITY_NONE,
    [SPECIES_PIKACHU_ROCK_STAR           ] = ABILITY_NONE,
    [SPECIES_PIKACHU_BELLE               ] = ABILITY_NONE,
    [SPECIES_PIKACHU_POP_STAR            ] = ABILITY_NONE,
    [SPECIES_PIKACHU_PH_D                ] = ABILITY_NONE,
    [SPECIES_PIKACHU_LIBRE               ] = ABILITY_NONE,
    [SPECIES_PIKACHU_ORIGINAL_CAP        ] = ABILITY_NONE,
    [SPECIES_PIKACHU_HOENN_CAP           ] = ABILITY_NONE,
    [SPECIES_PIKACHU_SINNOH_CAP          ] = ABILITY_NONE,
    [SPECIES_PIKACHU_UNOVA_CAP           ] = ABILITY_NONE,
    [SPECIES_PIKACHU_KALOS_CAP           ] = ABILITY_NONE,
    [SPECIES_PIKACHU_ALOLA_CAP           ] = ABILITY_NONE,
    [SPECIES_PIKACHU_PARTNER_CAP         ] = ABILITY_NONE,
    [SPECIES_PIKACHU_WORLD_CAP           ] = ABILITY_NONE,
    [SPECIES_PIKACHU_PARTNER             ] = ABILITY_LIGHTNING_ROD,
    [SPECIES_CASTFORM_SUNNY              ] = ABILITY_NONE,
    [SPECIES_CASTFORM_RAINY              ] = ABILITY_NONE,
    [SPECIES_CASTFORM_SNOWY              ] = ABILITY_NONE,
    [SPECIES_CHERRIM_SUNSHINE            ] = ABILITY_NONE,
    [SPECIES_SHELLOS_EAST_SEA            ] = ABILITY_SAND_FORCE,
    [SPECIES_GASTRODON_EAST_SEA          ] = ABILITY_SAND_FORCE,
    [SPECIES_DIALGA_ORIGIN               ] = ABILITY_TELEPATHY,
    [SPECIES_PALKIA_ORIGIN               ] = ABILITY_TELEPATHY,
    [SPECIES_BASCULIN_BLUE_STRIPED       ] = ABILITY_MOLD_BREAKER,
    [SPECIES_BASCULIN_WHITE_STRIPED      ] = ABILITY_MOLD_BREAKER,
    [SPECIES_DARMANITAN_ZEN_MODE         ] = ABILITY_ZEN_MODE,
    [SPECIES_DARMANITAN_ZEN_MODE_GALARIAN] = ABILITY_ZEN_MODE,
    [SPECIES_DEERLING_SUMMER             ] = ABILITY_SERENE_GRACE,
    [SPECIES_DEERLING_AUTUMN             ] = ABILITY_SERENE_GRACE,
    [SPECIES_DEERLING_WINTER             ] = ABILITY_SERENE_GRACE,
    [SPECIES_SAWSBUCK_SUMMER             ] = ABILITY_SERENE_GRACE,
    [SPECIES_SAWSBUCK_AUTUMN             ] = ABILITY_SERENE_GRACE,
    [SPECIES_SAWSBUCK_WINTER             ] = ABILITY_SERENE_GRACE,
    [SPECIES_TORNADUS_THERIAN            ] = ABILITY_NONE,
    [SPECIES_THUNDURUS_THERIAN           ] = ABILITY_NONE,
    [SPECIES_LANDORUS_THERIAN            ] = ABILITY_NONE,
    [SPECIES_KYUREM_WHITE                ] = ABILITY_NONE,
    [SPECIES_KYUREM_BLACK                ] = ABILITY_NONE,
    [SPECIES_KELDEO_RESOLUTE             ] = ABILITY_NONE,
    [SPECIES_MELOETTA_PIROUETTE          ] = ABILITY_NONE,
    [SPECIES_GENESECT_DOUSE_DRIVE        ] = ABILITY_NONE,
    [SPECIES_GENESECT_SHOCK_DRIVE        ] = ABILITY_NONE,
    [SPECIES_GENESECT_BURN_DRIVE         ] = ABILITY_NONE,
    [SPECIES_GENESECT_CHILL_DRIVE        ] = ABILITY_NONE,
    [SPECIES_GRENINJA_BATTLE_BOND        ] = ABILITY_NONE,
    [SPECIES_GRENINJA_ASH                ] = ABILITY_NONE,
    [SPECIES_VIVILLON_POLAR              ] = ABILITY_FRIEND_GUARD,
    [SPECIES_VIVILLON_TUNDRA             ] = ABILITY_FRIEND_GUARD,
    [SPECIES_VIVILLON_CONTINENTAL        ] = ABILITY_FRIEND_GUARD,
    [SPECIES_VIVILLON_GARDEN             ] = ABILITY_FRIEND_GUARD,
    [SPECIES_VIVILLON_ELEGANT            ] = ABILITY_FRIEND_GUARD,
    [SPECIES_VIVILLON_MEADOW             ] = ABILITY_FRIEND_GUARD,
    [SPECIES_VIVILLON_MODERN             ] = ABILITY_FRIEND_GUARD,
    [SPECIES_VIVILLON_MARINE             ] = ABILITY_FRIEND_GUARD,
    [SPECIES_VIVILLON_ARCHIPELAGO        ] = ABILITY_FRIEND_GUARD,
    [SPECIES_VIVILLON_HIGH_PLAINS        ] = ABILITY_FRIEND_GUARD,
    [SPECIES_VIVILLON_SANDSTORM          ] = ABILITY_FRIEND_GUARD,
    [SPECIES_VIVILLON_RIVER              ] = ABILITY_FRIEND_GUARD,
    [SPECIES_VIVILLON_MONSOON            ] = ABILITY_FRIEND_GUARD,
    [SPECIES_VIVILLON_SAVANNA            ] = ABILITY_FRIEND_GUARD,
    [SPECIES_VIVILLON_SUN                ] = ABILITY_FRIEND_GUARD,
    [SPECIES_VIVILLON_OCEAN              ] = ABILITY_FRIEND_GUARD,
    [SPECIES_VIVILLON_JUNGLE             ] = ABILITY_FRIEND_GUARD,
    [SPECIES_VIVILLON_FANCY              ] = ABILITY_FRIEND_GUARD,
    [SPECIES_VIVILLON_POKE_BALL          ] = ABILITY_FRIEND_GUARD,
    [SPECIES_FLABEBE_YELLOW_FLOWER       ] = ABILITY_SYMBIOSIS,
    [SPECIES_FLABEBE_ORANGE_FLOWER       ] = ABILITY_SYMBIOSIS,
    [SPECIES_FLABEBE_BLUE_FLOWER         ] = ABILITY_SYMBIOSIS,
    [SPECIES_FLABEBE_WHITE_FLOWER        ] = ABILITY_SYMBIOSIS,
    [SPECIES_FLOETTE_YELLOW_FLOWER       ] = ABILITY_SYMBIOSIS,
    [SPECIES_FLOETTE_ORANGE_FLOWER       ] = ABILITY_SYMBIOSIS,
    [SPECIES_FLOETTE_BLUE_FLOWER         ] = ABILITY_SYMBIOSIS,
    [SPECIES_FLOETTE_WHITE_FLOWER        ] = ABILITY_SYMBIOSIS,
    [SPECIES_FLOETTE_ETERNAL_FLOWER      ] = ABILITY_NONE,
    [SPECIES_FLORGES_YELLOW_FLOWER       ] = ABILITY_SYMBIOSIS,
    [SPECIES_FLORGES_ORANGE_FLOWER       ] = ABILITY_SYMBIOSIS,
    [SPECIES_FLORGES_BLUE_FLOWER         ] = ABILITY_SYMBIOSIS,
    [SPECIES_FLORGES_WHITE_FLOWER        ] = ABILITY_SYMBIOSIS,
    [SPECIES_FURFROU_HEART               ] = ABILITY_NONE,
    [SPECIES_FURFROU_STAR                ] = ABILITY_NONE,
    [SPECIES_FURFROU_DIAMOND             ] = ABILITY_NONE,
    [SPECIES_FURFROU_DEBUTANTE           ] = ABILITY_NONE,
    [SPECIES_FURFROU_MATRON              ] = ABILITY_NONE,
    [SPECIES_FURFROU_DANDY               ] = ABILITY_NONE,
    [SPECIES_FURFROU_LA_REINE            ] = ABILITY_NONE,
    [SPECIES_FURFROU_KABUKI              ] = ABILITY_NONE,
    [SPECIES_FURFROU_PHARAOH             ] = ABILITY_NONE,
    [SPECIES_AEGISLASH_BLADE             ] = ABILITY_NONE,
    [SPECIES_PUMPKABOO_SMALL             ] = ABILITY_INSOMNIA,
    [SPECIES_PUMPKABOO_LARGE             ] = ABILITY_INSOMNIA,
    [SPECIES_PUMPKABOO_SUPER             ] = ABILITY_INSOMNIA,
    [SPECIES_GOURGEIST_SMALL             ] = ABILITY_INSOMNIA,
    [SPECIES_GOURGEIST_LARGE             ] = ABILITY_INSOMNIA,
    [SPECIES_GOURGEIST_SUPER             ] = ABILITY_INSOMNIA,
    [SPECIES_XERNEAS_ACTIVE              ] = ABILITY_NONE,
    [SPECIES_ZYGARDE_10                  ] = ABILITY_NONE,
    [SPECIES_ZYGARDE_10_POWER_CONSTRUCT  ] = ABILITY_NONE,
    [SPECIES_ZYGARDE_50_POWER_CONSTRUCT  ] = ABILITY_NONE,
    [SPECIES_ZYGARDE_10_COMPLETE         ] = ABILITY_NONE,
    [SPECIES_ZYGARDE_50_COMPLETE         ] = ABILITY_NONE,
    [SPECIES_HOOPA_UNBOUND               ] = ABILITY_NONE,
    [SPECIES_ORICORIO_POM_POM            ] = ABILITY_NONE,
    [SPECIES_ORICORIO_PAU                ] = ABILITY_NONE,
    [SPECIES_ORICORIO_SENSU              ] = ABILITY_NONE,
    [SPECIES_ROCKRUFF_OWN_TEMPO          ] = ABILITY_NONE,
    [SPECIES_LYCANROC_MIDNIGHT           ] = ABILITY_NO_GUARD,
    [SPECIES_LYCANROC_DUSK               ] = ABILITY_NONE,
    [SPECIES_WISHIWASHI_SCHOOL           ] = ABILITY_NONE,
    [SPECIES_MINIOR_METEOR_ORANGE        ] = ABILITY_NONE,
    [SPECIES_MINIOR_METEOR_YELLOW        ] = ABILITY_NONE,
    [SPECIES_MINIOR_METEOR_GREEN         ] = ABILITY_NONE,
    [SPECIES_MINIOR_METEOR_BLUE          ] = ABILITY_NONE,
    [SPECIES_MINIOR_METEOR_INDIGO        ] = ABILITY_NONE,
    [SPECIES_MINIOR_METEOR_VIOLET        ] = ABILITY_NONE,
    [SPECIES_MINIOR_CORE_RED             ] = ABILITY_NONE,
    [SPECIES_MINIOR_CORE_ORANGE          ] = ABILITY_NONE,
    [SPECIES_MINIOR_CORE_YELLOW          ] = ABILITY_NONE,
    [SPECIES_MINIOR_CORE_GREEN           ] = ABILITY_NONE,
    [SPECIES_MINIOR_CORE_BLUE            ] = ABILITY_NONE,
    [SPECIES_MINIOR_CORE_INDIGO          ] = ABILITY_NONE,
    [SPECIES_MINIOR_CORE_VIOLET          ] = ABILITY_NONE,
    [SPECIES_MIMIKYU_BUSTED              ] = ABILITY_NONE,
    [SPECIES_NECROZMA_DUSK_MANE          ] = ABILITY_NONE,
    [SPECIES_NECROZMA_DAWN_WINGS         ] = ABILITY_NONE,
    [SPECIES_NECROZMA_ULTRA_DUSK_MANE    ] = ABILITY_NONE,
    [SPECIES_NECROZMA_ULTRA_DAWN_WINGS   ] = ABILITY_NONE,
    [SPECIES_MAGEARNA_ORIGINAL           ] = ABILITY_NONE,
    [SPECIES_CRAMORANT_GULPING           ] = ABILITY_NONE,
    [SPECIES_CRAMORANT_GORGING           ] = ABILITY_NONE,
    [SPECIES_TOXTRICITY_LOW_KEY          ] = ABILITY_TECHNICIAN,
    [SPECIES_SINISTEA_ANTIQUE            ] = ABILITY_CURSED_BODY,
    [SPECIES_POLTEAGEIST_ANTIQUE         ] = ABILITY_CURSED_BODY,
    [SPECIES_ALCREMIE_BERRY_SWEET        ] = ABILITY_AROMA_VEIL,
    [SPECIES_ALCREMIE_LOVE_SWEET         ] = ABILITY_AROMA_VEIL,
    [SPECIES_ALCREMIE_STAR_SWEET         ] = ABILITY_AROMA_VEIL,
    [SPECIES_ALCREMIE_CLOVER_SWEET       ] = ABILITY_AROMA_VEIL,
    [SPECIES_ALCREMIE_FLOWER_SWEET       ] = ABILITY_AROMA_VEIL,
    [SPECIES_ALCREMIE_RIBBON_SWEET       ] = ABILITY_AROMA_VEIL,
    [SPECIES_ALCREMIE_FILLER_1           ] = ABILITY_NONE,
    [SPECIES_ALCREMIE_FILLER_2           ] = ABILITY_NONE,
    [SPECIES_EISCUE_NOICE_FACE           ] = ABILITY_NONE,
    [SPECIES_MORPEKO_HANGRY              ] = ABILITY_NONE,
    [SPECIES_ZACIAN_CROWNED              ] = ABILITY_NONE,
    [SPECIES_ZAMAZENTA_CROWNED           ] = ABILITY_NONE,
    [SPECIES_ETERNATUS_ETERNAMAX         ] = ABILITY_NONE,
    [SPECIES_URSHIFU_RAPID_STRIKE        ] = ABILITY_NONE,
    [SPECIES_ZARUDE_DADA                 ] = ABILITY_NONE,
    [SPECIES_CALYREX_ICE_RIDER           ] = ABILITY_NONE,
    [SPECIES_CALYREX_SHADOW_RIDER        ] = ABILITY_NONE,
    [SPECIES_ENAMORUS_THERIAN            ] = ABILITY_NONE,
    [SPECIES_GROWLITHE_HISUIAN           ] = ABILITY_ROCK_HEAD,
    [SPECIES_ARCANINE_HISUIAN            ] = ABILITY_ROCK_HEAD,
    [SPECIES_VOLTORB_HISUIAN             ] = ABILITY_AFTERMATH,
    [SPECIES_ELECTRODE_HISUIAN           ] = ABILITY_AFTERMATH,
    [SPECIES_TYPHLOSION_HISUIAN          ] = ABILITY_FRISK,
    [SPECIES_QWILFISH_HISUIAN            ] = ABILITY_INTIMIDATE,
    [SPECIES_SNEASEL_HISUIAN             ] = ABILITY_PICKPOCKET,
    [SPECIES_SAMUROTT_HISUIAN            ] = ABILITY_SHARPNESS,
    [SPECIES_LILLIGANT_HISUIAN           ] = ABILITY_LEAF_GUARD,
    [SPECIES_ZORUA_HISUIAN               ] = ABILITY_NONE,
    [SPECIES_ZOROARK_HISUIAN             ] = ABILITY_NONE,
    [SPECIES_BRAVIARY_HISUIAN            ] = ABILITY_TINTED_LENS,
    [SPECIES_SLIGGOO_HISUIAN             ] = ABILITY_GOOEY,
    [SPECIES_GOODRA_HISUIAN              ] = ABILITY_GOOEY,
    [SPECIES_AVALUGG_HISUIAN             ] = ABILITY_STURDY,
    [SPECIES_DECIDUEYE_HISUIAN           ] = ABILITY_SCRAPPY,
    [SPECIES_UNFEZANT_FEMALE             ] = ABILITY_RIVALRY,
    [SPECIES_FRILLISH_FEMALE             ] = ABILITY_DAMP,
    [SPECIES_JELLICENT_FEMALE            ] = ABILITY_DAMP,
    [SPECIES_PYROAR_FEMALE               ] = ABILITY_MOXIE,
    [SPECIES_MEOWSTIC_FEMALE             ] = ABILITY_COMPETITIVE,
    [SPECIES_INDEEDEE_FEMALE             ] = ABILITY_PSYCHIC_SURGE,
    [SPECIES_BASCULEGION_FEMALE          ] = ABILITY_MOLD_BREAKER,
    [SPECIES_MAUSHOLD_FAMILY_OF_THREE    ] = ABILITY_TECHNICIAN,
    [SPECIES_SQUAWKABILLY_BLUE_PLUMAGE   ] = ABILITY_GUTS,
    [SPECIES_SQUAWKABILLY_YELLOW_PLUMAGE ] = ABILITY_SHEER_FORCE,
    [SPECIES_SQUAWKABILLY_WHITE_PLUMAGE  ] = ABILITY_SHEER_FORCE,
    [SPECIES_PALAFIN_HERO                ] = ABILITY_NONE,
    [SPECIES_TATSUGIRI_DROOPY            ] = ABILITY_STORM_DRAIN,
    [SPECIES_TATSUGIRI_STRETCHY          ] = ABILITY_STORM_DRAIN,
    [SPECIES_DUDUNSPARCE_THREE_SEGMENT   ] = ABILITY_RATTLED,
    [SPECIES_GIMMIGHOUL_ROAMING          ] = ABILITY_NONE,
    [SPECIES_TERAPAGOS_TERASTAL          ] = ABILITY_NONE,
    [SPECIES_WOOPER_PALDEAN              ] = ABILITY_UNAWARE,
    [SPECIES_TAUROS_COMBAT               ] = ABILITY_CUD_CHEW,
    [SPECIES_TAUROS_BLAZE                ] = ABILITY_CUD_CHEW,
    [SPECIES_TAUROS_AQUA                 ] = ABILITY_CUD_CHEW,
    [SPECIES_OINKOLOGNE_FEMALE           ] = ABILITY_THICK_FAT,
    [SPECIES_REVAVROOM_SEGIN             ] = ABILITY_FILTER,
    [SPECIES_REVAVROOM_SCHEDAR           ] = ABILITY_FILTER,
    [SPECIES_REVAVROOM_NAVI              ] = ABILITY_FILTER,
    [SPECIES_REVAVROOM_RUCHBAH           ] = ABILITY_FILTER,
    [SPECIES_REVAVROOM_CAPH              ] = ABILITY_FILTER,
    [SPECIES_POLTCHAGEIST_MASTERPIECE    ] = ABILITY_HEATPROOF,
    [SPECIES_SINISTCHA_MASTERPIECE       ] = ABILITY_HEATPROOF,
    [SPECIES_OGERPON_WELLSPRING_MASK     ] = ABILITY_NONE,
    [SPECIES_OGERPON_HEARTHFLAME_MASK    ] = ABILITY_NONE,
    [SPECIES_OGERPON_CORNERSTONE_MASK    ] = ABILITY_NONE,
    [SPECIES_TERAPAGOS_STELLAR           ] = ABILITY_NONE,
    [SPECIES_URSALUNA_BLOODMOON          ] = ABILITY_NONE,
};
